Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4778185
Votes 0
Synopsis JNLPClassLoader can still return unencoded URL
Category javawebstart:other
Reported Against 1.2
Release Fixed 1.4.2(mantis-b09)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 4754763 , 4777431 , 4785848
Submit Date 13-NOV-2002
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/ xxxxx /Java/Deployment
this will result of cached resource being returned as:

jar:file:C:/XXX/Application Data/ xxxxx /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/ xxxxx /Data/Deployment/cache/http/YYY/resource.jar
Work Around
N/A
Evaluation
I think we should fix this in mantis, by encoding and decoding in URLUtil

  xxxxx@xxxxx   2002-11-13

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

  xxxxx@xxxxx   2002-11-15

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

  xxxxx@xxxxx   2002-11-20
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang