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

Locator method and resource method with same URI does not dispatch

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: Beta3
    • Fix Version/s: Beta4
    • Component/s: jaxrs
    • Labels:
      None

      Description

      public static class Receiver
      {
      @Path("/head")
      @GET
      public String get()

      { return this.getClass().getName(); }

      }

      public static class QueueReceiver extends Receiver
      {

      }

      @Path("/directory")
      public static class Directory
      {
      @Path("/receivers/

      {id}")
      public QueueReceiver getReceiver(@PathParam("id")String id)
      { return new QueueReceiver(); }

      @DELETE
      @Path("/receivers/{id}

      ")
      public String closeReceiver(@PathParam("id")String id) throws Exception

      { return Directory.class.getName(); }

      }

      if the invocation is "DELETE /receiver/1" it will not dispatch to closeReceiver.

        Gliffy Diagrams

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              bill.burke Bill Burke
              Reporter:
              bill.burke Bill Burke
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development