Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4200

UriInfoImpl.getPathSegments(decode) does not pass 'decode' flag to getPath()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.2, 2.6
    • Fix Version/s: 2.3.10, 2.4.7, 2.5.3, 2.6
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      The function 'UriInfoImpl.getPathSegments(boolean decode)' calls 'getPath()' internally. It should call 'getPath(decode)' instead.

      As an example, consider the following path: 'a/x%2fy/b' ('%2f' = '/').
      When calling 'UriInfoImpl.getPathSegments(true)', four path segments are returned: 'a', 'x', 'y', 'b'. However, when 'UriInfoImpl.getPathSegments(false)' is called, the result is the same. Instead, 'a', 'x%2fy', 'b' is expected.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              robth Rob ten Hove
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: