Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 28, 2018. It is now read-only.

Fix Jetty context path#3786

Open
brettkail-wk wants to merge 1 commit into
javaee:masterjavaee/jersey:masterfrom
brettkail-wk:jetty-uri-contextbrettkail-wk/jersey:jetty-uri-contextCopy head branch name to clipboard
Open

Fix Jetty context path#3786
brettkail-wk wants to merge 1 commit into
javaee:masterjavaee/jersey:masterfrom
brettkail-wk:jetty-uri-contextbrettkail-wk/jersey:jetty-uri-contextCopy head branch name to clipboard

Conversation

@brettkail-wk

Copy link
Copy Markdown

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
Copy Markdown

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

@brettkail-wk

Copy link
Copy Markdown
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.