Open jcarranzan opened 2 months ago
cc @jamezp
Note: I was working where @jcarranzan left and this bug seems really strange. I update his reproducer to resource class looking like this:
@Path("/hello")
public class GreetingResource {
@GET
@Path("/any")
public String headers() {
return "ok";
}
@GET
@Path("/hello")
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
return "Hello RESTEasy";
}
}
and in attached test only path from /hello
to /hello/hello
was changed
So to fix his reproducer is enough to add one endpoint.
Additional findings:
In addition when both of these endpoints are anotated with @Produces(MediaType.TEXT_PLAIN)
it start failing again.
Describe the bug
Verifying backport for 3.8.6 https://github.com/quarkusio/quarkus/pull/41411- Ensure that MessageBodyWriter is passed the proper media type and doing a small test coverage in our quarkus test suite, I've noticed that it's not working with
quarkus-resteasy
, not sure if it's the behavior expected.Expected behavior
It works same as with
quarkus-rest
dependencyActual behavior
MessageBodyWriter<String>
is ignored and then the response is not expected.How to Reproduce?
git clone -b accept-no-header https://github.com/jcarranzan/quarkus-reproducer.git
mvn clean verify
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response