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

ResponseCache get and put method decode original URL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 6
    • 6
    • core-libs
    • None
    • generic
    • generic

      If you install a custom cache handler and implement the ResponseCache get and put method, you will find out the uri that got passed into the get and put method is decoded, if the original url contains encoded character (e.g %3a).

      e.g if you open a url connection:

      http://javaweb.sfbay/~ngthomas/getput/%3aimage/draw.jpg

      it will becomes:

      http://javaweb.sfbay/~ngthomas/getput/:image/draw.jpg

      when it get passed into ResponseCache.get and put

      testcase:

      http://javaweb.sfbay/~ngthomas/getput/HelloWorld.html

      testcase source:

      http://javaweb.sfbay/~ngthomas/getput/

      ###@###.### 2005-05-23 18:44:31 GMT

            jccollet Jean-Christophe Collet (Inactive)
            ngthomas Thomas Ng (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: