-
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 - mapping MULTIPART_FORM_DATA to request body don't work #28782
Comments
/cc @FroMage, @geoand, @stuartwdouglas |
Thanks! @FroMage can you please take a look at this? It would be great to have this fixed for the first CR if possible |
Yes, this must be related to the multipart change. I'll look. |
OK, so the first good news is that if I add these tests to the RESTEasy Reactive test suite, they pass. |
Perhaps it's a client issue then, because I see that's involved. |
I guess the |
OK, I can reproduce it outside the QE tests. It appears to be a problem with the client indeed, not sending anything. |
Huh. So, that's embarassing… It appears |
Thank you |
This is the gift issue that keeps on giving. So apparently, on the header we auto-hyphenate headers, so And, since we designed |
Not sure I am following what you mean here. Can you please elaborate? |
Well, given that |
I must be missing something entirely as I don't understand what you mean by |
You must be as incredulous as I was: @Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.PARAMETER })
public @interface RestHeader {
String value() default "";
} Notice the missing |
Amazingly, the spec doesn't really mention if those |
Oh... Now I see... Yeah, putting them on a method was not something we really envisioned |
But apparently people do that, they put them on setters for entity resources, and bean params. For the server. And on the client, they put them on getters I guess, of bean params. And on multipart classes, which are now treated like bean params. |
Darn... I guess we need to formally support it then |
Well, I will start with filing an issue, then we can wait for people to need that. Seems pretty useless IMO. |
I agree |
Great, thanks |
… client - Also use hyphenate on `@RestHeader` on client fields on bean params quarkusio#13665 - Added test for client bean param on fields, getters and regular parameters for good measure Fixes quarkusio#28782
OK, done. |
… client - Also use hyphenate on `@RestHeader` on client fields on bean params quarkusio#13665 - Added test for client bean param on fields, getters and regular parameters for good measure Fixes quarkusio#28782
Ah, still not fixed, I get it. |
… client - Also use hyphenate on `@RestHeader` on client fields on bean params quarkusio#13665 - Added test for client bean param on fields, getters and regular parameters for good measure Fixes quarkusio#28782
… client - Also use hyphenate on `@RestHeader` on client fields on bean params quarkusio#13665 - Added test for client bean param on fields, getters and regular parameters for good measure Fixes quarkusio#28782 (cherry picked from commit 368b496)
… client - Also use hyphenate on `@RestHeader` on client fields on bean params quarkusio#13665 - Added test for client bean param on fields, getters and regular parameters for good measure Fixes quarkusio#28782 (cherry picked from commit 368b496)
Describe the bug
with #27526 in place, my multiplart form data request body is always null. My endpoint looks like:
same situation is for wrapper
Expected behavior
Actual behavior
requestBody
is always null.body
is not null but its fields are null.How to Reproduce?
Reproducer:
Steps to reproduce the behavior:
git clone https://github.com/quarkus-qe/quarkus-test-suite.git
cd quarkus-test-suite/http/jaxrs-reactive && mvn clean verify -Dit.test=MultipartClientIT
cd quarkus-test-suite/http/rest-client-reactive && mvn clean verify -Dit.test=LargeFileHandlingIT#uploadMultipart
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: