We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jetty-12.0.x
Jetty Environment ee10
A setup like:
ServletContextHandler context = new ServletContextHandler(); context.setContextPath("/blah"); ServletHolder holderAlt = new ServletHolder("static-alt", DefaultServlet.class); holderAlt.setInitParameter("resourceBase", "/tmp/static-alt/"); context.addServlet(holderAlt, "*.js");
For a request such as:
GET http://localhost/blah/foo.js
Results in a call to DefaultServlet:
DefaultServlet
protected String getEncodedPathInContext(HttpServletRequest req, String includedServletPath) { if (includedServletPath != null) return encodePath(getIncludedPathInContext(req, includedServletPath, !isDefaultMapping(req))); else if (!isDefaultMapping(req)) return encodePath(req.getPathInfo());
The Request.getPathInfo() on a suffix match returns null. The path that is encoded in this case should be eg /foo.js
Request.getPathInfo()
/foo.js
The text was updated successfully, but these errors were encountered:
This should be fixed by the introduction of the ResourceServlet in #11933
ResourceServlet
Sorry, something went wrong.
janbartel
No branches or pull requests
jetty-12.0.x
Jetty Environment
ee10
A setup like:
For a request such as:
Results in a call to
DefaultServlet
:The
Request.getPathInfo()
on a suffix match returns null. The path that is encoded in this case should be eg/foo.js
The text was updated successfully, but these errors were encountered: