RESTEasy
  1. RESTEasy
  2. RESTEASY-34

Locator method and resource method with same URI does not dispatch

    Details

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

      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.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: