-
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
[Spring Cloud Gateway MVC] Multipart data missing #3527
Comments
@lukaszpy do you have spring security configured? I had the smae behavior when using spring security, did not dig deeper to understand the cause. For now by removing spring security the body is processed correctly, specially when using spring-cloud-gateway-server-mvc |
@dgradecak yes I have spring sec, as validate tokens, and checking roles for path |
If you'd like us to spend some time investigating, please take the time to provide a complete, minimal, verifiable sample (something that we can unzip attached to this issue or git clone, build, and deploy) that reproduces the problem. |
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. |
We had the same issue. I can provide an example here: https://github.com/sapo-di/gateway-mvc-test/ You need to run the ProxyApplication and can use the The produces exception is:
|
I am also having this issue. I have narrowed it down to the The problem is with TokenRelay in that it calls
in When My fix was to locally configure the |
Also having this issue, using |
Describe the bug
After routing
multipart/form-data
through gateway mvc, downstream service receive request but without multipart file.I looked into code of gateway and in
RestClientProxyExchange
we havethere is not copy multipart data from original request.
Example route:
The text was updated successfully, but these errors were encountered: