-
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
PathMappingsHandler exposes PathSpec and Context based on PathSpec #11494
Labels
Comments
joakime
added a commit
that referenced
this issue
Mar 7, 2024
joakime
added a commit
that referenced
this issue
Jan 27, 2025
joakime
added a commit
that referenced
this issue
Jan 27, 2025
Completed in PR #12738 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jetty version(s)
12.0.7
Enhancement Description
The existing
PathMappingsHandler
does not record the matchedPathSpec
that lead to the decision to call the specific handler.I propose we add the matched
PathSpec
to the Request attributes before calling the matchedHandler
.This has 2 benefits.
PathSpec
details (like regex matched groupings, and uri-template variables / path-params, path-info, etc) can be obtained.Request.getPathInContext(Request)
can participate in the smart resolution of path-in-context from the matchedPathSpec
(as a primary source if aContextHandler
is not present?)The text was updated successfully, but these errors were encountered: