Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Fix Jetty context path #3786

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brettkail-wk
Copy link

JettyHttpContainer has logic to support non-default context paths, but it miscalculates the request URI: the getRequestURI contains the context path, and it is appended getServerAddress(baseUri), which also (correctly) contains the context path. Use getPathInfo instead, which excludes the context path.

(I am listed for Jersey in the Oracle Contributor Agreement under "Workiva Inc.")

JettyHttpContainer has logic to support non-default context paths, but
it miscalculates the request URI: the getRequestURI contains the context
path, and it is appended getServerAddress(baseUri), which also
(correctly) contains the context path.  Use getPathInfo instead, which
excludes the context path.
@konrader
Copy link

Sounds like this would fix https://github.com/jersey/jersey/issues/3338

@brettkail-wk
Copy link
Author

@konrader Yes, that appears to be the same issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants