jersey
jersey copied to clipboard
Fix Jetty context path
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.")
Sounds like this would fix https://github.com/jersey/jersey/issues/3338
@konrader Yes, that appears to be the same issue.