Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
3.1.4.Final
-
None
-
Migration, Compatibility/Configuration
Description
I have 2 methods at the same path, however resteasy 3.1.4.Final is not detecting the GET-annotated resource (but is detecting other resources for that interface).
A.java
@Path("/") public interface A { @GET @Path("/report/states") @Produces(MediaType.TEXT_HTML) public String getReport(@Context UriInfo uriInfo); }
B.java
@Path("/report") public interface B { @POST @Path("/states") @Consumes(MediaType.APPLICATION_XML) @Produces(MediaType.APPLICATION_JSON) ReportData getData(WebQuery query); }
However when I go to that path only the POST resource is exposed:
$ curl -i 'http://server/app/report/states' -H "Accept: text/html"
HTTP/1.1 405 Method Not Allowed
Server: Apache-Coyote/1.1
Allow: POST, OPTIONS
Content-Length: 0
Date: Wed, 04 Oct 2017 08:57:36 GMT
Other resources within interface A are working
This was working correctly using 3.0.19.Final