-
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 12 - Cherry-Pick of Servlet PathMapping improvements around RegexPathSpec #8693
Conversation
…xtHandler (#7614) Added protected method to ServletHandler to allow other servlet mappings (eg regex) in embedded/extended usage Signed-off-by: Greg Wilkins <[email protected]> Signed-off-by: Joakim Erdfelt <[email protected]>
Fix 7891 regex pathInfo + Use the pathSpec methods to set servletPath and pathInfo when possible Signed-off-by: Greg Wilkins <[email protected]>
* Cherry-pick of Improvements to PathSpec. * From commit: 5b4d1dd * Fixing ConstraintSecurityHandler usage of PathMappings * Fixing bad INCLUDE logic from cherry-pick in ServletHandler.doScope() * Cleanup of non ServletPathSpec behaviors in ServletPathMapping class * Skip optional group name/info lookup if regex fails. * Prevent NPE on static servletPathMappings * Update WebSocketMappings to use new PathMappings.getMatched(String) Signed-off-by: Joakim Erdfelt <[email protected]>
Signed-off-by: Joakim Erdfelt <[email protected]>
jetty-ee9/jetty-ee9-servlet/src/test/java/org/eclipse/jetty/ee9/servlet/RegexServletTest.java
Outdated
Show resolved
Hide resolved
This is not even close to being ready. The change in 12.0.x for MappedServlet is quite dramatic (from how it was in 10.0.x or 11.0.x) |
…servlet-pathmapping-regex
return null; | ||
} | ||
|
||
public ServletPathMapping getServletPathMapping(String pathInContext, MatchedPath matchedPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gregw this is the new method that isn't being used consistently that I'm concerned about.
There is also a getServletPathMapping(String pathInContext)
above this method that I couldn't get rid of (we should be able to get rid of it)
This PR is a result of a merge analysis done due to PR #8690
This PR is cherry-pick of the following PathMapping related commits from Jetty 10/11.