FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix Jetty context path by brettkail-wk · Pull Request #3786 · javaee/jersey · GitHub

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

Repository navigation

Fix Jetty context path - #3786

Open
brettkail-wk wants to merge 1 commit into
javaee:masterfrom
brettkail-wk:jetty-uri-context
Open

brettkail-wk wants to merge 1 commit into
javaee:masterfrom
brettkail-wk:jetty-uri-context

Conversation

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.

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Author

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL