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
Resteasy Reactive - Multipart does not accept text/plain bigger than 2048 bytes #16422
Comments
/cc @FroMage, @geoand, @stuartwdouglas |
Thanks for reporting. I'll have a look tomorrow |
Vert.x defaults to 2K and prior to this PR we didn't have a way to configure it. Fixes: quarkusio#16422
@Postremus #16432 will address the issue. However I have a question: Did you really mean to send the input as a form attribute or as a file? Because if you meant to do the latter, you are not doing it correctly :) |
@geoand Yes, that is intended :) Back then when I created this app, this was the only way I know how to achieve this. The app also has another multipart endpoint for accepting a complete file - which is working fine already in resteasy reactive :) |
Understood, thanks for the info |
Vert.x defaults to 2K and prior to this PR we didn't have a way to configure it. When the a form attribute is too large in multipart request, return HTTP 413. Fixes: quarkusio#16422
Vert.x defaults to 2K and prior to this PR we didn't have a way to configure it. When the a form attribute is too large in multipart request, return HTTP 413. Fixes: quarkusio#16422
Vert.x defaults to 2K and prior to this PR we didn't have a way to configure it. When the a form attribute is too large in multipart request, return HTTP 413. Fixes: quarkusio#16422
Vert.x defaults to 2K and prior to this PR we didn't have a way to configure it. When the a form attribute is too large in multipart request, return HTTP 413. Fixes: quarkusio#16422
Add the ability to configure the maximum form attribute size
Vert.x defaults to 2K and prior to this PR we didn't have a way to configure it. When the a form attribute is too large in multipart request, return HTTP 413. Fixes: quarkusio#16422 (cherry picked from commit 19eb163)
Vert.x defaults to 2K and prior to this PR we didn't have a way to configure it. When the a form attribute is too large in multipart request, return HTTP 413. Fixes: quarkusio#16422 (cherry picked from commit 19eb163)
Vert.x defaults to 2K and prior to this PR we didn't have a way to configure it. When the a form attribute is too large in multipart request, return HTTP 413. Fixes: quarkusio#16422
@geoand Kind of late to the party here, but this should probably be mentioned in the migration documentation as well. |
Feel free to open a PR with your suggestion. Thanks |
Sure, will do |
Describe the bug
I am currently migrating a small app from Resteasy Classic to Resteasy Reactive.
One of my resources uses multipart to accept form input from users.
2048 or less bytes work, the text field contains the input text.
If the users enters more than 2048 bytes, the text field is null.
No exception is thrown.
My resource:
Expected behavior
A text/plain field should not be arbitary limited to 2048 bytes.
It should work like with Resteasy Classic, with the only limit being the configured quarkus.http.limits.max-body-size.
Actual behavior
@PartType("text/plain")
is left null if input text is longer than 2048 bytes.To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
Output of
uname -a
orver
Linux martin 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment Zulu15.28+13-CA (build 15.0.1+8)
OpenJDK 64-Bit Server VM Zulu15.28+13-CA (build 15.0.1+8, mixed mode, sharing)
Quarkus version or git rev
1.13.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /home/martin/.sdkman/candidates/maven/current
Java version: 15.0.1, vendor: Azul Systems, Inc., runtime: /home/martin/.sdkman/candidates/java/15.0.1-zulu
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.8.0-48-generic", arch: "amd64", family: "unix"
The text was updated successfully, but these errors were encountered: