-
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.0.x 9444 servlet paths fully decoded #9479
Jetty 12.0.x 9444 servlet paths fully decoded #9479
Conversation
getServletPath and getPathInfo will never return an encoded path segment. Instead, they will throw an IllegalArgumentException if they are called when there is a URI with violations.
getServletPath and getPathInfo will never return an encoded path segment. Instead, they will throw an IllegalArgumentException if they are called when there is a URI with violations.
Signed-off-by: gregw <[email protected]>
WIP
Fixed ee9 tests
@sbordet @janbartel @joakime this PR is now building and so is ready for some review, however I think there is still some more work that could be done:
|
How about we use |
Optionally throw on decode of ambiguous URIs
I'd prefer that we keep the "encoded" and "decoded" portions in the method names. |
…9444-servletPaths-fully-decoded
Optionally throw on decode of ambiguous URIs
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/UriCompliance.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/Context.java
Outdated
Show resolved
Hide resolved
...-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletApiRequest.java
Outdated
Show resolved
Hide resolved
...-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletApiRequest.java
Outdated
Show resolved
Hide resolved
jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletHandler.java
Outdated
Show resolved
Hide resolved
...y-ee10/jetty-ee10-servlet/src/test/java/org/eclipse/jetty/ee10/servlet/AsyncContextTest.java
Outdated
Show resolved
Hide resolved
We'll get rid of the ISO-8859-1 fallback during decode in a different PR? |
updates from review. Extra testing.
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.
Just nits, LGTM.
jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/Context.java
Outdated
Show resolved
Hide resolved
...-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletApiRequest.java
Outdated
Show resolved
Hide resolved
...0/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletContextRequest.java
Show resolved
Hide resolved
updates from review.
Alternative to #9465
This is an alternative to #9462 & #9465 as a fix for #9444, replacing changes made by #9455