Open mindhaq opened 4 months ago
It might be related to https://github.com/spring-cloud/spring-cloud-gateway/issues/3154
have you tried the fix for #3154?
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Describe the bug
I'm using spring-boot 3.2.5 with spring cloud 2023.0.1 and JDK 21
I'm using Proxy Exchange Gateway with Spring MVC.
When I POST JSON data to a proxy controller that contains a space character, the proxy exchange fails with the exception in the title:
With everything being the same, but not having any space characters in the JSON, there is no problem.
This was found while migrating a spring-boot monolith running on boot 2.2.x with netflix zuul which was updated to spring boot 3.2.x, cloud gateway, latest JDK etc. It took quite some time to reduce the error scenario to this.
Sample
I created a sample repository which proxies requests to httpbin.org
https://github.com/mindhaq/spring-demo-gateway-proxyexchange-mvc
This request fails with the exception above:
This one works just fine:
Going directly to httpbin.org works in both cases, so that is not the problem.
Do I miss any configuration or is this some deeper lying bug which got revealed by that space character?