-
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 Multipart Json Upload doesn't work for files #19677
Labels
Milestone
Comments
/cc @FroMage, @geoand, @stuartwdouglas |
This is the expected behavior actually. When you upload a file, the field is not populated with the value. Instead, you should use The fact that there is no actionable information however is not ideal. I'll look into adding something |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Aug 26, 2021
…ot accessed as such Closes: quarkusio#19677
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Aug 26, 2021
…ot accessed as such Closes: quarkusio#19677
geoand
changed the title
RestEasy Reactive Multipart Json Upload doesn't work for files
RESTEasy Reactive Multipart Json Upload doesn't work for files
Aug 26, 2021
geoand
added
triage/invalid
This doesn't seem right
and removed
kind/bug
Something isn't working
labels
Aug 26, 2021
#19684 adds a debug log message for this case |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Aug 28, 2021
…ot accessed as such Closes: quarkusio#19677
geoand
added a commit
that referenced
this issue
Aug 30, 2021
Add an actionable message when attribute of multipart is a file and not accessed as such
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Aug 30, 2021
…ot accessed as such Closes: quarkusio#19677 (cherry picked from commit d9dc0ff)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I try to use RestEasy Reactive's Multipart upload to upload a json file and want to get the parsed contents in my multipart Dto. This works fine if directly send json in the part but it doesn't work if the part is a file containing json.
Expected behavior
Should be the same for json files and for "inline" json.
Actual behavior
No response
How to Reproduce?
Reproducer:
2021-08-26_resteasy-reactive-multipart-json-file.zip
./gradlew quarkusDev
curl --location --request POST 'localhost:8080/hello' --form 'jsonFilePart=@"./multipart-test.json";type=application/json' --form 'jsonPart="{\"name\": \"Json without file part\" }";type=application/json'
(the filemultpart-test.json
is included in the reproducer project){"jsonFilePart":null,"jsonPart":{"name":"Json without file part"}}
multipart-test.json
file.Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.1.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)gradle
Additional information
No response
The text was updated successfully, but these errors were encountered: