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

injected PathSegment encoded/decoded switched around.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0-beta-1, 2.3.5.Final
    • 2.3.2.Final, 2.3.4.Final
    • jaxrs
    • None

    Description

      URL: ".../blah%20blah;param=A%20B/..."
      when sending the above encoded url to something like:

      public Response blah(@PathParam("seg") PathSegment seg)

      {...}
      I get:
      seg.getPath(); -> "blah%20blah"
      set.getMatrixParameters().getFirst("param"); -> "A%20B"

      adding @Encoded like:


      public Response blah(@PathParam("seg") @Encoded PathSegment seg) {...}

      I get:
      seg.getPath(); -> "blah blah"
      set.getMatrixParameters().getFirst("param"); -> "A B"

      shouldn't it be the other way around ?

      Sorry if I am mistaken here.

      Attachments

        Activity

          People

            rsigal@redhat.com Ronald Sigal
            beatkyo David ALEXANDRE (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: