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

UriBuilder does not properly encode query parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Workaround
    • 3.4.3
    • None
    • JAX-RS
    • None
    • Unknown

    Description

      The JAXRS specification seems unclear regarding how the method

      UriBuilder.queryParam(String name, Object… values)

      treats values w/ URL encoding. However, we could legitimately assume this method properly URL encodes parameter values.

      CXF implementation URL encodes values, but with some defects:

      invoking

      UriBuilder.fromUri("my/path").queryParam("p", "%250%").toTemplate()

      produces the URI template

      my/path?p=%250%25 

      instead of

      my/path?p=%25250%25

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            nlenoire Nicolas Lenoire
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: