-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Use getPath instead of getRawPath to prevent doulbe encoding of the URI #3483
base: main
Are you sure you want to change the base?
Use getPath instead of getRawPath to prevent doulbe encoding of the URI #3483
Conversation
See #3437 |
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.
please add a test
I'm not sure this is going to work.
|
You are right, it only solves the issue for ascii characters because it seems UriComponentsBuilder does not encode anything else. @rworsnop @spencergibb |
@rworsnop it seems that neither jdks URI nor the UriComponentsBuilder from Spring escapes unicodes outside of ascii.
Yet, the code from PR is still working for unicode characters, because it seems the http-client or something after the filter is escaping the en-dash correctly. But I found another issue: While the URI from componentsbuilder with |
I've found a solution, it seems @spencergibb tests have also been added |
Use getPath instead of getRawPath to prevent doulbe encoding of the URI to fix issue #3482.