-
Notifications
You must be signed in to change notification settings - Fork 618
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
Fabio decodes URL path parameters #486
Comments
We enable passing substrings that represent encoded reserved symbols, like `%2f` for `/`, in the path of a request. NB: This does not enable using encoded characters in rewrite rules (e.g. in the urlprefix directive). Cf. fabiolb#347 and fabiolb#486
Any chance to see a fix here? We have the same problem with https://domain.tld as a path param. |
There is work and discussion going on in #489 ... would you be able to test if that patch fixes your issue? |
No, that didn't change anything. [TRACE] abc Tracing xxx/stella/v1/xzy/https://wwwi.screenwork.de/ But I traced it done and added a few "RawPath"s: |
@tuempeltaucher that's with the code from #489 applied? |
Yes, I forked valentin-krasontovitsch:url_decoding_in_routing, that is the branch from his pull request. |
Any news here? |
We enable passing substrings that represent encoded reserved symbols, like `%2f` for `/`, in the path of a request. NB: This does not enable using encoded characters in rewrite rules (e.g. in the urlprefix directive). Cf. fabiolb#347 and fabiolb#486
Related issue/change:
#347
cc3e3cd
While using fabio a team mate noticed that some of our URL path parameters, such as resource Ids, which have url-encoded content in them are being decoded by fabio causing 404 errors. The decoded path parameters are sent to the service and not recognized as a valid path.
Example:
container/job with
urlprefix-/posts
request: GET /posts/abcder%2Fsdf394/comments
This matches the URL prefix, but routes to
/posts/abcder/sdf394/comments
which isn't a valid path and thus returns a 404.The text was updated successfully, but these errors were encountered: