jersey icon indicating copy to clipboard operation
jersey copied to clipboard

Fix Jetty context path

Open brettkail-wk opened this issue 7 years ago • 2 comments

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.")

brettkail-wk avatar Mar 20 '18 10:03 brettkail-wk

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

konrader avatar Mar 23 '18 12:03 konrader

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

brettkail-wk avatar Mar 23 '18 12:03 brettkail-wk