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

Move RESTEasy provider registration as unremovable beans to common module #22609

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jan 4, 2022

This is needed because without this change, applications that only
include the rest-client without including the server component,
result in the providers not being registered as unremovable beans.

Fixes: #22605
Fixes: #20498

This is needed because without this change, applications that only
include the rest-client without including the server component,
result in the providers not being registered as unremovable beans.

Fixes: quarkusio#22605
@geoand geoand requested a review from gsmet January 4, 2022 11:36
This is done in order to ensure that the rest-client properly
registers providers when the server part is not around
@@ -3,5 +3,6 @@ quarkus.datasource.jdbc.url=jdbc:tracing:postgresql://localhost:5432/mydatabase
quarkus.datasource.jdbc.driver=io.opentracing.contrib.jdbc.TracingDriver
quarkus.datasource.username=sa
quarkus.datasource.password=sa
quarkus.rest.single-default-produces=false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is needed because RESTEasy Reactive will default to text/plain when returning String from a JAX-RS Resource method, but this default is not what this integration uses

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

I added a comment about the test but feel free to merge as is if you disagree.

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-mutiny</artifactId>
</dependency>

<!-- Client dependencies -->
<dependency>
Copy link
Member

Choose a reason for hiding this comment

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

I'm thinking about this and I'm not sure it's worth making this test a Frankenstein. I think I would just drop the testing on this one.

But YMMV.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually wanted to have this test because I think it's relatively easy for us to miss this in the future

@gsmet
Copy link
Member

gsmet commented Jan 5, 2022

Ah ah, I was looking at fixing #20498 and it ends up being the same issue :).

@geoand
Copy link
Contributor Author

geoand commented Jan 5, 2022

Excellent !

@gsmet gsmet modified the milestones: 2.7 - main, 2.6.2.Final Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants