Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1726

Resteasy 3.1.4 is not seeing second @Path-annotated resource

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 3.1.4.Final
    • jaxrs
    • 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

      Attachments

        Activity

          People

            rsearls r searls
            jbossthrowaway12345 Peter Wright (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: