Skip to content
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

Fix #6870 Encode control characters #6874

Merged
merged 4 commits into from Sep 21, 2021

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Sep 20, 2021

Reproduce #6870 Rewritten Balancer

Signed-off-by: Greg Wilkins gregw@webtide.com

Reproduce #6870 Rewritten Balancer

Signed-off-by: Greg Wilkins <gregw@webtide.com>
@gregw gregw linked an issue Sep 20, 2021 that may be closed by this pull request
@gregw
Copy link
Contributor Author

gregw commented Sep 20, 2021

I've pushed a reproduction in a unit test for the BalancerServlet, although ultimately I think this should be a test/fix in jetty-http and/or jetty-rewrite

Fix #6870 URIUtil.encodePath encodes control characters

Signed-off-by: Greg Wilkins <gregw@webtide.com>
@gregw gregw changed the title Reproduce #6870 Rewritten Balancer Fix #6870 Encode control characters Sep 20, 2021
@gregw gregw marked this pull request as ready for review September 20, 2021 05:18
@joakime joakime added this to In progress in Jetty 9.4.44 FROZEN via automation Sep 20, 2021
@joakime joakime moved this from In progress to Review in progress in Jetty 9.4.44 FROZEN Sep 20, 2021
Encode all control characters

Signed-off-by: Greg Wilkins <gregw@webtide.com>
Signed-off-by: Greg Wilkins <gregw@webtide.com>
@gregw gregw requested a review from sbordet September 20, 2021 23:00
Jetty 9.4.44 FROZEN automation moved this from Review in progress to Reviewer approved Sep 21, 2021
@gregw gregw merged commit 0abc9f9 into jetty-9.4.x Sep 21, 2021
Jetty 9.4.44 FROZEN automation moved this from Reviewer approved to Done Sep 21, 2021
@gregw gregw deleted the jetty-9.4.x-6870-BalancerServlet-URI branch September 23, 2021 00:11
gregw added a commit that referenced this pull request Sep 23, 2021
Fix #6870 URIUtil.encodePath encodes control characters

* Better test for wider range of characters
* Encode all control characters

Signed-off-by: Greg Wilkins <gregw@webtide.com>
gregw added a commit that referenced this pull request Sep 23, 2021
Fix #6870 URIUtil.encodePath encodes control characters

* Better test for wider range of characters
* Encode all control characters

Signed-off-by: Greg Wilkins <gregw@webtide.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Encode control characters in URIUtil.encodePath
3 participants