-
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
Gateway-Mvc FormFilter erase all parameters causing retrive parameter return null in later filter or servlet #3244
Comments
i that we should combine the form map and queryParams to pass to RequestWrapper , i can make a PR |
oh thank god I am not alone, I am hitting exactly the same issue: after incorporating I did not dive deeply into cloud-gateway-mvc, in my case I do path-based routing and the paths that are handled locally and the others that are proxies are completely disjunct but I guess the flexible nature of this library requires cloud-gateway-filtering of everything? Thanks in advance! |
if anyone else hits this before it is fixed in here, this is my workaround (it disables the filter):
I stared at the code and read the comments to no avail - I do not get it, why is this Filter required? Everything is already neatly parsed as |
This is because of the way servlet containers combine parameters. If this didn't happen, there would be duplicate request parameters. |
This test fails without the filter Lines 418 to 436 in df6269e
|
Unfortunately, #3249 duplicates the query parameters |
I'm thinking this is a documentation issue. If the custom filter is ordered before |
I've added documentation as well as properties for disabling filters in #3310 |
This allows them to be used in external configuration. Fixes gh-3244
If those filters are good for gateway related cases, is there a way to enable them only for those gateway routes? (Papertrail: lost another three hours trying to integrate gateway mvc as a replacement for zuul v1)
In my case, basic spring controllers end up with no request parameters at all. |
Describe the bug
Gateway-Mvc FormFilter erase all parameters causing retrive parameter return null in later filter or servlet
Sample
i have a servlet for a form to post submit , but i can not retrive parameter by using request.getParameter("fool"),after i debug, i found formfilter will remove all parameters , and only offer query params to next filter or servlet
why ? , that will cause the later filter or servlet can not access any parameters.
The text was updated successfully, but these errors were encountered: