-
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
Resteasy reactive: Fix NullPointerException when using multipart with optional value #19160
Resteasy reactive: Fix NullPointerException when using multipart with optional value #19160
Conversation
...test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartOptionalInputTest.java
Outdated
Show resolved
Hide resolved
b4e6f7e
to
3edeeaf
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 3edeeaf
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment✖
⚙️ JVM Tests - JDK 11 Windows #📦 extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment✖
⚙️ JVM Tests - JDK 16 #📦 extensions/resteasy-reactive/quarkus-resteasy-reactive/deployment✖
|
It seems like you need a different resouce (because |
3edeeaf
to
dff79b5
Compare
Thanks for the hint. Lets see what CI says this time... |
...ment/src/test/java/io/quarkus/resteasy/reactive/server/test/multipart/MultipartResource.java
Outdated
Show resolved
Hide resolved
dff79b5
to
c015eb7
Compare
c015eb7
to
4b3219b
Compare
@geoand: When I try to run the test in IntelliJ, I get the following exception. Do you have an idea why?
|
Don't run the Quarkus tests from IntelliJ :). The classpath seems too large for IntelliJ to properly figure out. See https://github.com/quarkusio/quarkus/blob/main/CONTRIBUTING.md#building-a-single-module-of-an-extension for tip for running tests from Maven |
@geoand: Do you know why the JDK 11 Windows test failed? On my branch the CI was successful: https://github.com/andreas-eberle/quarkus/runs/3220430247 |
Those are flaky unfortunately... But since it has nothing to do with this change, it's safe to ignore |
Thanks for the support! |
Thanks for the fix! |
Hi guys,
I noticed that resteasy reactive throws a NullPointerException when you do not upload every file in a multipart body. In my case, I have file upload fields which are optional. This worked fine with resteasy-multipart but with resteasy reactive I get the exception.
So this PR tries to fix this issue.
I also added a test to try to validate this. I basically copied one of the other tests and slightly modified it. However, I cannot get any of the tests to work on my Windows. I'll continue trying but maybe you guys have an idea what is the issue.