quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.51k stars 2.6k forks source link

Response.fromResponse bug in reactive version of resteasy libs #41887

Closed bkalas closed 6 days ago

bkalas commented 1 month ago

Describe the bug

We switched from resteasy legacy to recomended reactive alternative quarkus-rest, quarkus-rest-jacskon. After switch we noticed that Response.fromResponse method does not work anymore. Code in controllers like Response.fromResponse(rcClient.doCall()).build() was working for legacy libs and its not correctly working in new libs. It returns correct status, but payload somehoiw cannot be accessed.

I created reproducer https://github.com/bkalas/q3-responsebug-reproducer there are 2 projects 'reproducer-reactive-not-working' 'reproducer-resteasy-legacy-working'

See in both MainRestController and test for it, in resteasy-legacy test will pass, same test wont pass for rective

Expected behavior

Bahviour should be same for both libraries

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

17

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

quarkus-bot[bot] commented 1 month ago

/cc @FroMage (resteasy-reactive), @stuartwdouglas (resteasy-reactive)

gastaldi commented 6 days ago

Thanks for the reproducer. This is a duplicate of #25496