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

Bad encoding of Query string value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.1.GA
    • 1.2.GA
    • None
    • None

    Description

      Ack, I forgot to mention this earlier...

      There is a bug in the client when encoding odd unicode characters.
      Try sending a @QueryParam with emoji chars. It's double-encoding the
      % character.

      I have a clear case in which a Resteasy method calls out to a remote
      Resteasy method passing some parameters. I've tried to distill it
      here.

      This is the input URL to the first method, which works fine. I get a
      String with the correct chars.

      /my/url?msg=emoji+stuff+%EE%81%96%EE%90%8F

      Calling a client method with that msg parameter produced a url that
      looked more or less like this:

      http://example.com/other/url?msg=emoji+stuff+%EE%2581%2596%EE%2590%258F

      Note the double encoding of % to %25.

      I'm currently falling back to constructing the outbound URLs by hand,
      which works, so it's not a Java charset issue.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            patriot1burke@gmail.com Bill Burke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: