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
Many servlet mappings using URL suffixes may get lost in Jetty 9.4 #8396
Comments
Use Jetty 9.4.48.v20220622 See: #8184 |
This is a legitimate bug. |
This bug does not exist in Jetty 10+ |
This issue has been automatically marked as stale because it has been a |
@joakime can this be closed? |
Closed with issue #8184 |
Jetty version(s)
9.4.x. It is unclear to me if "End of community support" means that major issues should not even be reported anymore.
Java version/vendor
(use: java -version)
OS type/version
Windows
Description
My application uses a couple of servlet mappings like this:
At some point I added another mapping and large parts of the application stopped working.
After some debugging the root cause was found here:
https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/PathMappings.java#L347
Code tries to resize
_suffixMap
but it accidentally initializes the new map from_prefixMap
instead of_suffixMap
.How to reproduce?
Create a webapplication where the total number of characters of suffixes in
url-patterns
is large (roughly larger than 128 which is the default size ofArrayTernaryTrie
). Then try to call one of the first sevlets.The text was updated successfully, but these errors were encountered: