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

injected PathSegment encoded/decoded switched around.

    XMLWordPrintable

    Details

      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

            Assignee:
            ron_sigal Ronald Sigal
            Reporter:
            beatkyo David ALEXANDRE (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: