-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add option for whether semicolon is treated as normal character or not #5150
Add option for whether semicolon is treated as normal character or not #5150
Conversation
I don't think we are going to make this an option as it is very specific to the API and not related to the behavior of the HTTP server itself |
Instead it should be a method parameter of |
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.
Use a method parameter instead of an HTTP server option
Done according to your suggestions : ) Feel free to review again and comment. @vietj |
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.
since the created multimap is cached, we should also cache the delimiter and check the delimiter is the same when accessing again the multimap because this might be called multiple times with different values, when the delimiter is not the same then we should compute it again (and perhaps cache it).
Thank you ! I see. I've added a new cached property Please review it again : ) |
Fixed according to your suggestions : ) Feel free to review again and comment. cc @vietj |
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.
This test only the new feature with HTTP/2, a new test should be added in HttpTest so it will be executed for for HTTP/2 and HTTP/1.
Fixed according to your suggestions : ) Feel free to review again and comment. cc @vietj |
Fixed according to your suggestions : ) Feel free to review again and comment. cc @vietj |
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.
Can you squash everything in a single commit to facilitate back-port to 4.x ?
Close eclipse-vertx#4588. This PR adds an option uriQuerySemicolonIsNormalChar to HttpServerOptions to support treating ; a normal character instead of query parameter seperator, since it has already been supported in netty QueryStringDecoder. And the default behavior is still to treat ; as a seperator to ensure compatibility.
0620dd8
to
4a0d5c4
Compare
Done. Please check. |
thanks I'll merge that soon and backport |
Motivation:
Close #4588.
This PR adds an option
uriQuerySemicolonIsNormalChar
toHttpServerOptions
to support treating;
a normal character instead of query parameter seperator, since it has already been supported in nettyQueryStringDecoder
.And the default behavior is still to treat
;
as a seperator to ensure compatibility.References:
Conformance:
You should have signed the Eclipse Contributor Agreement as explained in https://github.com/eclipse/vert.x/blob/master/CONTRIBUTING.md
Please also make sure you adhere to the code style guidelines: https://github.com/vert-x3/wiki/wiki/Vert.x-code-style-guidelines