Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1518

Issue with URL encoding of paths containing tilde

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Critical
    • None
    • 1.0.15.Final
    • Proxy
    • None
      • setup reverse proxy
      • try proxy a URL with a ~ in one of the path components: such as "/test/test~test/test/test"

    Description

      We are using Wildly 8.1.1 with Undertow 1.0.15.FInal. We have configured a reverse proxy in the undertow subsystem in the standalone file.
      When URLs with tilde (~) in the path is encountered, the URL is not encoded correctly.

      Input:
      "/test/test~test/test/test"
      Is encoded to
      "/test/test%7Etes/tes/test"

      The method "encodeUrlPart" in ProxyHandler seems to be the culprit (and the method "realEncode" as well). We have reproduced the issue with 1.0.15.Final. The same code can be found on the master branch in the file RedirectBuilder, but we are not able to test on a newer server with a newer undertow.

      Attachments

        Activity

          People

            rhn-cservice-bbaranow Bartosz Baranowski
            rpn82 Rasmus Nielsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: