-
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-jaxb does not work nicely together with multipart/form-data FileUpload #28524
Milestone
Comments
/cc @FroMage, @Sgitario, @geoand, @gsmet, @stuartwdouglas |
I attached an reproducer to the starting post. |
Sgitario
added a commit
to Sgitario/quarkus
that referenced
this issue
Oct 13, 2022
@Postremus, I've just linked a pull request with a fix |
igorregis
pushed a commit
to igorregis/quarkus
that referenced
this issue
Oct 16, 2022
igorregis
pushed a commit
to igorregis/quarkus
that referenced
this issue
Oct 16, 2022
igorregis
pushed a commit
to igorregis/quarkus
that referenced
this issue
Oct 16, 2022
igorregis
pushed a commit
to igorregis/quarkus
that referenced
this issue
Oct 17, 2022
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Oct 17, 2022
Fix quarkusio#28524 (cherry picked from commit d36438b)
tmihalac
pushed a commit
to tmihalac/quarkus
that referenced
this issue
Oct 27, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have 3 resteasy-reactive resources in my project:
The text/plain one works correctly.
The multipart/form-data one also works correctly.
The application/xml one however complains about the FileUpload which is used in the other resource. See exception below.
FileUpload is an Interface, and can't be marshalled / unmarshaled by default.
The FileUpload class is bound because each parameter type of a multipart/form-data resource is getting bound to one jaxb context.
quarkus/extensions/resteasy-reactive/quarkus-resteasy-reactive-jaxb/deployment/src/main/java/io/quarkus/resteasy/reactive/jaxb/deployment/ResteasyReactiveJaxbProcessor.java
Lines 89 to 98 in b9d7536
One solution would be to create distinct JaxbContext instances for each resource.
Using java.io.File instead works, however in that case I can't access the mimetype easily.
Expected behavior
No exception when using multipart/form-data and application/xml in the same project.
Actual behavior
How to Reproduce?
multipart-jaxb-fileinput.zip
Output of
uname -a
orver
Microsoft Windows [Version 10.0.19044.2006]
Output of
java -version
17.0.4
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.13.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: C:\eclipse\tools\java\maven Java version: 17.0.4, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\17 Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response
The text was updated successfully, but these errors were encountered: