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

Custom MessageBodyReader<Object> not used with quarkus-rest instead of quarkus-resteasy #45449

Open
paulpunk opened this issue Jan 8, 2025 · 1 comment
Labels
area/rest kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.

Comments

@paulpunk
Copy link

paulpunk commented Jan 8, 2025

Describe the bug

I'm trying to use quarkus-rest but i have a blocking issue.

I have a custom MessageBodyReader<Object> annotated like this:
@Provider @Produces({MediaType.APPLICATION_JSON, "application/x-msgpack"}) @Consumes({MediaType.APPLICATION_JSON, "application/x-msgpack"}) @Priority(1) public class QuarkusJsonMessageBodyReaderWriter implements MessageBodyReader<Object>, MessageBodyWriter<Object>

Using quarkus-resteasy-jackson this worked fine, but with quarkus-rest-jackson i can see that ServerJacksonMessageBodyReader is used. Is there some way to use a custom MessageBodyReader<Object>?

Expected behavior

Own MessageBodyReader<Object> implementation is used

Actual behavior

ServerJacksonMessageBodyReader is used

How to Reproduce?

Create a MessageBodyReader<Object> implementation with Priority 1 and use quarkus-rest-jackson

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

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

No response

Additional information

No response

@paulpunk paulpunk added the kind/bug Something isn't working label Jan 8, 2025
@paulpunk paulpunk changed the title MessageBodyReader not used when using quarkus-rest instead of quarkus-resteasy MessageBodyReader<Object> not used with quarkus-rest instead of quarkus-resteasy Jan 8, 2025
@paulpunk paulpunk changed the title MessageBodyReader<Object> not used with quarkus-rest instead of quarkus-resteasy Custom MessageBodyReader<Object> not used with quarkus-rest instead of quarkus-resteasy Jan 8, 2025
@geoand
Copy link
Contributor

geoand commented Jan 8, 2025

Please attach a sample application that shows the problem in action.

Thanks

@geoand geoand added triage/needs-reproducer We are waiting for a reproducer. area/rest and removed triage/needs-triage labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rest kind/bug Something isn't working triage/needs-reproducer We are waiting for a reproducer.
Projects
None yet
Development

No branches or pull requests

2 participants