United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 4778185 JNLPClassLoader can still return unencoded URL
4778185 : JNLPClassLoader can still return unencoded URL

Details
Type:
Bug
Submit Date:
2002-11-13
Status:
Resolved
Updated Date:
2002-11-26
Project Name:
JDK
Resolved Date:
2002-11-26
Component:
deploy
OS:
windows_nt,windows_2000
Sub-Component:
webstart
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.2.0
Fixed Versions:
1.4.2

Related Reports
Duplicate:
Relates:
Relates:

Sub Tasks

Description
JNLPClassLoader returns illegal URL values from ClassLoader.findResource()
if the base directory for the cache contains characters illegal in URL's.
For example, on Windows the default deployment.userHome is commonly:
C:/XXX/Application Data/Sun/Java/Deployment
this will result of cached resource being returned as:

jar:file:C:/XXX/Application Data/Sun/Data/Deployment/cache/http/YYY/resource.jar

the space in "Application Data" is not a legal character in a url and should 
be encoded as "%20".  the returned url should be:

jar:file:C:/XXX/Application%20Data/Sun/Data/Deployment/cache/http/YYY/resource.jar


                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis-beta

FIXED IN:
mantis-beta

INTEGRATED IN:
mantis-b09
mantis-beta


                                     
2004-08-31
EVALUATION

I think we should fix this in mantis, by encoding and decoding in URLUtil

###@###.### 2002-11-13

At this time it has been decided to postpone integrating this fix.

###@###.### 2002-11-15

Having tested with thius fir for two weeks now, I think we should fix in mantis for beta freeze.

###@###.### 2002-11-20
                                     
2002-11-15



Hardware and Software, Engineered to Work Together