-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Ensure that file is written on disk for multipart when endpoint expects it #29716
Conversation
Let's get #29729 in before this. |
…ts it With this change, if the JAX-RS endpoint expects a multipart request to contain a file, then that file is always written to disk regardless of whether the content-disposition contains the filename attribute of not. Fixes: quarkusio#20938
Merge conflict fixed |
@geoand @rsvoboda I wasn't able to backport this one properly. It conflicts with another patch and even if the conflicts are fixed there are some test failures. |
I am pretty sure we can make a specific backport PR to |
But to be honest, this one isn't really needed by Keycloak as they use a different approach |
With this change, if the JAX-RS endpoint expects a multipart request to
contain a file, then that file is always written to disk regardless
of whether the content-disposition contains the filename attribute
of not.
Fixes: #20938
P.S. The implementation is very clean, but I don't see a better way of passing the necessary information to the runtime code