JDK-6219199 : REGRESSION:Image fail to load from URL with a space in the IIS virtual directory
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u2
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2005-01-19
  • Updated: 2010-04-26
  • Resolved: 2005-02-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
Duplicate :  
J2SE Version (please include all output from java -version flag):

Does this problem occur on J2SE 1.4.x or 5.0.x ?  Yes / No (pick one)
  No, works fine with Tiger 5.0

Operating System Configuration Information (be specific):
  Windows XP Service Pack 2  IIS6

Hardware Configuration Information (be specific):
  Intel based Dell Inspiron 5150 notebook.  1GB RAM/60GB Harddrive.

Bug Description:
  ImageIcon fails to load from url with a space in the virtual directory name
  and no exception appears to be thrown.
  This worked fine in the first Tiger relase.

Steps to Reproduce (be specific):
  Create an IIS virtual directory that has a space in its name.  i.e.  "Web 5"
  Copy ImageIconTest.html, ImageIconTest.jar, and blueCapt.gif to the IIS
  directory. Access the html file from Internet Explorer.  The image will 
  not display and no errors are produced.
  If ran with an IIS virtual directory that does not have a space in the name,
  it will display.

Please see the attached example applet. 

###@###.### 2005-1-19 21:58:07 GMT

The following comes from the log file on the IIS. It appears that when run
from IE the address is not properly translated from Icon%20Test to Icon+Test
as it is from the applet viewer.

<*ERROR*> IE 6.0 With JRE 1.5.0_02
16:51:32 W3SVC1 GET /icon%20test/BlueCapt.gif - 404 4203 292

Applet Viewer With JRE 1.5.0_02
16:59:05 W3SVC1 GET /icon+test/BlueCapt.gif - 200 3407 258

Applet Viewer With JRE 1.4.2_03
16:55:30 W3SVC1 GET /icon+test/BlueCapt.gif - 200 3407 215

###@###.### 2005-1-21 17:28:54 GMT

EVALUATION I don't have IIS to test this problem. Can problem submitter test running the applet using appletviewer to see if it also fails for IIS dir that contains white space? If it also fails, this is a problem for JSN team, not for plugin team. ###@###.### 2005-1-21 00:06:05 GMT i believe the problem is in ParseUtil.java (in sun.net.www). at the very end of the mustang version we see // if don't do this, URI may double escape path component path = decode(path); which does not appear in the tiger version ###@###.### 2005-2-01 04:11:09 GMT This looks like a duplicate of 6177527, but I'll let the plugin folks decide before closing it. The code above is not the problem. That code was added as part of the solution to this problem. ###@###.### 2005-2-08 16:18:41 GMT