-
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
Fixes #4577 IPAccessHandler in context #4580
Conversation
Fixes and tests #4577 IPAccessHandler in context by using target instead of pathInfo for path matching. Signed-off-by: Greg Wilkins <gregw@webtide.com>
The behaviour is il defined if this handler is within a context and a named dispatch is done. As t his is a deprecated handler, I am not inclined to define this behaviour. |
Class |
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 I'm surprised that the functionality of matching the URI that we have here is missing from InetAccessHandler
.
Do we have it elsewhere, also considering this class has been removed from Jetty 10?
jetty-server/src/test/java/org/eclipse/jetty/server/handler/IPAccessHandlerTest.java
Outdated
Show resolved
Hide resolved
jetty-server/src/test/java/org/eclipse/jetty/server/handler/IPAccessHandlerTest.java
Show resolved
Hide resolved
Updates from review. Signed-off-by: Greg Wilkins <gregw@webtide.com>
Looking at the commit comments for InetAccessHandler, they suggest that URI mapping was intended to be added eventually. I'll open a new issue to track it. (edit see: #4598) |
Match on full URI path rather than target. Signed-off-by: Greg Wilkins <gregw@webtide.com>
Fixes and tests #4577 IPAccessHandler in context by using target instead of pathInfo for path matching.
Signed-off-by: Greg Wilkins gregw@webtide.com