-
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
Jetty 10.0.14 uses wrong pathSpec for request #9517
Labels
Bug
For general bugs on Jetty side
Specification
For all industry Specifications (IETF / Servlet / etc)
Milestone
Comments
Oof! This is a bad bug that somehow creeped in (don't we have unit test for this??) |
joakime
added
the
Specification
For all industry Specifications (IETF / Servlet / etc)
label
Mar 17, 2023
I am able to replicate this with a simple test case. |
Not able to replicate in Jetty 10.0.13 or older. |
joakime
added a commit
that referenced
this issue
Mar 17, 2023
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Opened PR #9518 to address this |
sbordet
pushed a commit
that referenced
this issue
Mar 20, 2023
* Fixing #9517 - bad url-pattern prefix match behavior Fixed regression where `/foo/*` was incorrectly matching `/foobar`. Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com> Signed-off-by: gregw <gregw@webtide.com> Co-authored-by: gregw <gregw@webtide.com>
We've merged this into |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
For general bugs on Jetty side
Specification
For all industry Specifications (IETF / Servlet / etc)
Jetty version(s)
10.0.14
Java version/vendor
(use: java -version)
17
OS type/version
Doesn't matter
Description
Related to #9055
We have two servlets:
Prior to Jetty 10.0.14, requests to "/foobar/something" were handled by servlet 1. After the upgrade, requests are unable to reach it.
After debugging I found that problem was related to org.eclipse.jetty.http.pathmap.PathMappings#getMatched method:
The text was updated successfully, but these errors were encountered: