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
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
- duplicates
-
JDK-6274990 REGRESSION: URLConnection.connect() throws Exception with non UTF-8 char
-
- Resolved
-