-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[UNDERTOW-2337] Multipart form-data larger than 16KiB is not available through Servlet getParameter API #1541
Conversation
…e through Servlet getParameter API
Even when approached as a |
Hi @Laurens-W! I tried running the reproducer, but I am not managing to run it successfully with a simple post command. What am I supposed to see with the reproducer? |
Hey @fl4via! I added a postman collection to the reproducer with a successful and failing request :) |
@Laurens-W I see that I was running it in the wrong way and with the wrong curl command. Now I see: |
Thanks a lot @Laurens-W ! I'll give it a try! |
@fl4via Basically the issue describes that the request part data is not available through the |
Thanks for the information @Laurens-W . I am having a look at the reproducer (it runs as you described and I can see both the success and failure scenarios) to see how to properly fix this. |
31b55f4
to
3930dae
Compare
@Laurens-W indeed, I investigated the reproducer, Undertow, and I can see what is the problem. The fix provided by this PR solves the issue, not adding a fileName, but instead this check allows the return of a non-null parameter. To formalize that the commit fixes the issue with getParameterValues(), I added a check to the test case to verify that the parameter is being returned correctly, as expected. If you want to give it a try, feel free to download the undertow from master branch after I merge this PR, and change your reproducer by adding the following dependencies to the pom.xml file (or you can wait a few hours for the next release and point to 2.3.11.Final instead): They should come before the other dependencies to overwrite the version. You will see that the test passes. If in the future you spot any failure related to this PR, please let me know. Thanks for the reproducer and for responding quickly to my inquiries @Laurens-W . The postman collection was very helpful! |
… as a parameter Signed-off-by: Flavia Rainone <[email protected]>
3930dae
to
765f69b
Compare
@fl4via No problem! Glad you could look into it and confirm the exception in Spring is based on the same issue! |
Issue: https://issues.redhat.com/browse/UNDERTOW-2337