You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When debugging I found that at this point, request.getParameterMap() returns an empty map instead of a map with 1 entry (as it does when the form filter is disabled). Note that at this point, request is the request as it was wrapped by FormFilter.
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm on spring-cloud-gateway-server-mvc version 4.1.2.
In my application I have a simple controller:
I then use curl to call this endpoint (note curl will add
Content-Type: application/x-www-form-urlencoded
):and the output is
When I add the property
spring.cloud.gateway.mvc.form-filter.enabled: false
it works again and the output is as expected.Is having a
@PostMapping
with form data supposed to work in an application with spring-cloud-gateway?I found this in the docs https://docs.spring.io/spring-cloud-gateway/reference/spring-cloud-gateway-server-mvc/working-with-servlets-and-filters.html#page-title, but it's not clear to me how this would apply to a Controller and not a Filter.
When debugging I found that at this point,
request.getParameterMap()
returns an empty map instead of a map with 1 entry (as it does when the form filter is disabled). Note that at this point, request is the request as it was wrapped byFormFilter
.The text was updated successfully, but these errors were encountered: