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

Impossible to pass '+' character as is as part of HTTP query with WebClient

    XMLWordPrintableJSON

Details

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

    Description

      URL Encoder encodes "+" as "%2B" however this may affect the servers expecting '+' as is, in fact '+' is not a query reserved character.
      What further complicates is that URL encoder will encode ' ' as '+'.

      The path encoding process manages it correctly, it will retain '+' and will encode ' ' as '%20'.

      For query: we need to keep '+' as is and if users want it as '%2B' they they can directly use '%2B'. The same goes for ' ' - encoding it to '+' has not been a problem so far but if they need they can always use '%20'

      Attachments

        Issue Links

          Activity

            People

              sergey_beryozkin Sergey Beryozkin
              sergey_beryozkin Sergey Beryozkin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: