Skip to content
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

REST Client Reactive: support POJO as non-file fields in multipart messages #20127

Merged
merged 1 commit into from Sep 14, 2021

Conversation

michalszynkiewicz
Copy link
Member

fixes #19892

/**
* based on {@link io.vertx.ext.web.client.impl.MultipartFormUpload}
*/
public class QuarkusMultipartFormUpload implements ReadStream<Buffer> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sure hope this is a straight copy of io.vertx.ext.web.client.impl.MultipartFormUpload, otherwise it will be impossible to vouch for :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@geoand
Copy link
Contributor

geoand commented Sep 14, 2021

My only real question is whether all the codepaths are tested

@michalszynkiewicz
Copy link
Member Author

The integration test we had tested all the cases but passing a POJO.
I added a case for POJO. I'll add one more for the case where the POJO field is null

@michalszynkiewicz
Copy link
Member Author

done

@geoand geoand merged commit 8d1254d into quarkusio:main Sep 14, 2021
@quarkus-bot quarkus-bot bot added this to the 2.3 - main milestone Sep 14, 2021
@jsmrcka
Copy link
Contributor

jsmrcka commented Sep 14, 2021

Do you plan a backport to 2.2? If not, for what reason? @geoand @michalszynkiewicz

@geoand
Copy link
Contributor

geoand commented Sep 14, 2021

Not really as it could introduce regressions we don't want in patch releases.

@michalszynkiewicz michalszynkiewicz deleted the multipart-pojo-fields branch September 14, 2021 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for serializing POJOs to multipart forms in REST Client Reactive
3 participants