-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Validate media types for sub resources in Resteasy Reactive #28565
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the TCK passes, it's fine with me :)
At the moment, there are two places where resteasy reactive is verifying the media types: (1) at the handler `ClassRoutingHandler` only for the main resources (it's not invoked for sub-resources; and (2) at the handler `RequestDeserializeHandler` for the rest. The issue is that the verification at `RequestDeserializeHandler` takes the one from the user which might not be compatible with the one set by the user using the annotation `@Consumes`. Note that I tried to make this handler to be invoked also for sub resources but it caused more troubles and it would not fix the root cause of the issue that is the logic in the handler `RequestDeserializeHandler` is wrong. Fix quarkusio#28460
Failing Jobs - Building bfbfea6
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 #- Failing: extensions/flyway/deployment
! Skipped: integration-tests/flyway integration-tests/hibernate-orm-tenancy/datasource integration-tests/hibernate-orm-tenancy/schema and 1 more 📦 extensions/flyway/deployment✖
⚙️ JVM Tests - JDK 18 #- Failing: extensions/flyway/deployment
! Skipped: integration-tests/flyway integration-tests/hibernate-orm-tenancy/datasource integration-tests/hibernate-orm-tenancy/schema and 1 more 📦 extensions/flyway/deployment✖
|
@gastaldi ^ seems like the Flyway issues I was seeing locally... |
@geoand Ah-ha! Now I see these errors too: it's weird that I get a |
We'll need to get to the bottom of it - at the very least we need to disable those tests |
@geoand that error you are seeing locally is intended, it appears when |
Then something fishy is going on 🙂 |
At the moment, there are two places where resteasy reactive is verifying the media types: (1) at the handler
ClassRoutingHandler
only for the main resources (it's not invoked for sub-resources, and (2) at the handlerRequestDeserializeHandler
for the rest.The issue is that the verification at
RequestDeserializeHandler
takes the one from the user which might not be compatible with the one set by the user using the annotation@Consumes
.Note that I tried to make this handler be invoked also for sub-resources but it caused more troubles and it would not fix the root cause of the issue that is the logic in the handler
RequestDeserializeHandler
is wrong.Fix #28460