We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems resteasy reactive cannot return a multipart body. In the reproducer below, I have a method like this
@GET @Path("/multipart") @Produces(MediaType.MULTIPART_FORM_DATA) public MultipartDto getMultipart() throws IOException { File file = File.createTempFile("abc", "txt"); var writer = new FileWriter(file); writer.write("Test ABC"); writer.close(); return new MultipartDto("test text", file); }
But when I call it, I only get the following body:
org.acme.MultipartDto@345fa2e
Return a correct multipart form data response
Only toString of the returned object is returned.
./gradlew quarkusDev
uname -a
ver
No response
java -version
mvnw --version
gradlew --version
The text was updated successfully, but these errors were encountered:
/cc @FroMage, @geoand, @stuartwdouglas
Sorry, something went wrong.
@Sgitario FYI
Hi @Sgitario! Thanks for the implementation. Does this implementation also apply to the resteasy reactive client?
No, the reactive rest client does not support multipart formdata yet.
Successfully merging a pull request may close this issue.
Describe the bug
It seems resteasy reactive cannot return a multipart body. In the reproducer below, I have a method like this
But when I call it, I only get the following body:
org.acme.MultipartDto@345fa2e
Expected behavior
Return a correct multipart form data response
Actual behavior
Only toString of the returned object is returned.
How to Reproduce?
2021-10-26_restclient-reactive-multipart-response.zip
./gradlew quarkusDev
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
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: