-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
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
DefaultServlet not working with named dispatch in Jetty-12 EE10. #10139
Labels
Bug
For general bugs on Jetty side
Comments
lachlan-roberts
changed the title
DefaultServlet not working with named dispatch in Jetty-12.
DefaultServlet not working with named dispatch in Jetty-12 EE10.
Jul 25, 2023
lachlan-roberts
added a commit
that referenced
this issue
Jul 25, 2023
….isDefaultMapping Signed-off-by: Lachlan Roberts <[email protected]>
gregw
pushed a commit
that referenced
this issue
Jul 26, 2023
…y-12 EE10 (#10140) * Issue #10139 - check dispatch type and servlet name in DefaultServlet.isDefaultMapping Signed-off-by: Lachlan Roberts <[email protected]> * Issue #10139 - Two new test cases for INCLUDE/FORWARD to "default" named DefaultServlet --------- Signed-off-by: Lachlan Roberts <[email protected]> Co-authored-by: Joakim Erdfelt <[email protected]>
Merged PR #10140 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discovered from investigations into #10138.
This seems to have been introduced in the various PRs to fix #9910.
If there is a named dispatch then
DefaultServlet#getEncodedPathInContext
ignores the servletPath of the request becauseisDefaultMapping(HttpServletRequest req)
incorrectly says that the default servlet is not at the default mapping.In the case of the websocket ee10 demo this results in the wrong
index.html
file being served.The text was updated successfully, but these errors were encountered: