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

Wrong selected resource method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • Beta 7
    • Beta 6
    • jaxrs
    • None
    • Workaround Exists
    • Hide

      use path-variable specific regular expressions so that only a single uri template matches the request uri

      In my case I can use:

      @Path("/

      {id:[0-9]+}

      .xml.

      {lang}

      ")

      and

      @Path("/

      {id:[0-9]+}

      ")

      Show
      use path-variable specific regular expressions so that only a single uri template matches the request uri In my case I can use: @Path("/ {id:[0-9]+} .xml. {lang} ") and @Path("/ {id:[0-9]+} ")
    • Low

    Description

      Using the URL "http:/.../1.xml.de" on a resource class with two resource methods annotated with

      @Path("/

      {id}.xml.{lang}")

      and

      @Path("/{id}

      ")

      calls the second method.

      As far as I understand rule 2.f/g in section 3.7.2 "Request Matching" of the lastest jsr version the first method should have been choosen instead

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            garbandi66 Andreas Schmidt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: