Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6181108

double encoded URL passed to ResponseCache

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0, 5.0u1
    • core-libs
    • None
    • beta
    • unknown, x86
    • generic, windows_xp

      This is related to bug #6177527. Currently, when a HttpURLConnection is opened to a URL which contains space chars (or any other character that needs to be encoded), the URL is encoded twice before it is passed to the ResponseCache, (if a ResponseCache is set). Note, the correct URL is used in the request. It is only the URL passed to the cache that is incorrectly encoded.

      For example, a path component "/space test/" would first be converted to "/space%20test/" and then to "/space%2520test/".
      ###@###.### 10/19/04 10:38 GMT

      Test case is added as attachment. The test will succeed (assuming the server is running) but you will see that the ResponseCache is given the wrong URI.
      ###@###.### 10/19/04 13:38 GMT

            yuwangsunw Yujiang Wang (Inactive)
            michaelm Michael McMahon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: