URLRewrite filter does not rewrite query parameters correctly #2862
Labels
bug
Something isn't working
refined
Requirements are refined and the issue is ready to be implemented.
size/medium
Estimated to be completed within a week
Milestone
Describe the bug
Query parameters are not rewritten correctly when a URLRewrite filter is configured.
To Reproduce
Create the cafe app and gateway from the cafe-example
Create the following HTTPRoute that configures a ReplacePrefixMatch URLRewrite filter for the PathPrefix
/coffee/v1
:curl --resolve cafe.example.com:$GW_PORT:$GW_IP http://cafe.example.com:$GW_PORT/coffee/v1/path?TEST=v2
/path%3FTEST=v2?TEST=v2
Expected behavior
The URL should be rewritten to
/path?TEST=v2
Your environment
Additional context
See #2858 for more details.
The text was updated successfully, but these errors were encountered: