-
Notifications
You must be signed in to change notification settings - Fork 2k
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
VirtualServer with conditional routes creates wrong rewrite rules #1993
Labels
bug
An issue reporting a potential bug
Milestone
Comments
Hi @andreaspe thanks for reporting! Be sure to check out the docs while you wait for a human to take a look at this 🙂 Cheers! |
Hi @andreaspe I confirm that it is a bug: If a path includes I don't see a workaround. However, if you remove the - path: /test/
action:
proxy:
upstream: coffee
rewritePath: /
|
pleshakov
added a commit
that referenced
this issue
Dec 11, 2021
Previously, if a rewrite was configured in a VS/VSR route, and the route had a split action, match action or a regex path, NGINX would mess up the arguments in the resulting rewrite. For example, the result would be /test%3Fhello=world?hello=world instead of the correct /test?hello=world Fixes #1993
nginx-bot
pushed a commit
that referenced
this issue
Dec 13, 2021
Previously, if a rewrite was configured in a VS/VSR route, and the route had a split action, match action or a regex path, NGINX would mess up the arguments in the resulting rewrite. For example, the result would be /test%3Fhello=world?hello=world instead of the correct /test?hello=world Fixes #1993
nginx-bot
pushed a commit
that referenced
this issue
Dec 15, 2021
Previously, if a rewrite was configured in a VS/VSR route, and the route had a split action, match action or a regex path, NGINX would mess up the arguments in the resulting rewrite. For example, the result would be /test%3Fhello=world?hello=world instead of the correct /test?hello=world Fixes #1993
pleshakov
added a commit
that referenced
this issue
Dec 15, 2021
Previously, if a rewrite was configured in a VS/VSR route, and the route had a split action, match action or a regex path, NGINX would mess up the arguments in the resulting rewrite. For example, the result would be /test%3Fhello=world?hello=world instead of the correct /test?hello=world Fixes #1993
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When creating a VirtualServer with a route that contains a match condition and a rewritePath, it seems to create wrong rewrite rules. On the proxy destination i can observere request parameters duplicated.
To Reproduce
The location block in the generated config seems to be like this:
Expected behavior
The requests are proxied to the destination as /?hello=world.
Your environment
Additional context
Without the matches: block the request is correctly passed to the upstream.
Aha! Link: https://nginx.aha.io/features/IC-280
The text was updated successfully, but these errors were encountered: