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

Wrong decoding url when character is encoded on two bytes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.2-beta-1
    • 2.0.1.GA
    • None
    • None

      In 1.2.1 URL was decoded using java URLDecoder with UTF-8.
      In 2.0.1 there is self made decode method (decodePath in Encode class).

      This method can only handle chars encoded in only one byte, and because
      for example :

      char ã in São Paulo with utf is encoded as

      %C3%A3

      RestEasy decode it to ã.

        1. more_encoding_tests_trunk.diff
          1 kB
          Fredrik Kjellberg
        2. utf8_pathparams_with_escaping.diff
          5 kB
          Matthias Schütz
        3. utf8_pathparams.diff
          5 kB
          Matthias Schütz

              patriot1burke@gmail.com Bill Burke (Inactive)
              pawelwlodarski Pawel Wlodarski (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: