JDK-4687999 : URL.openStream() throws AccessControlException when opening path with space char
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2002-05-20
  • Updated: 2002-06-11
  • Resolved: 2002-06-11
Related Reports
Duplicate :  
Description
customer is running an applet via a file url from a jar
file with a pathname that includes a space character.
when they open an input stream from a url made up of
the codebase (getDocumentBase()) & a filename, the URL's
openStream() method throws an AccessControlException.

this only happens with the 1.4.0 plugin - 1.3.1 was ok.

to test this, try running the applet at:

file:/net/kelvin.uk/export/dts/calls/417972/space dir/jdk14bug.htm

Comments
PUBLIC COMMENTS customer is running an applet via a file url from a jar file with a pathname that includes a space character. when they open an input stream from a url made up of the codebase (getDocumentBase()) & a filename, the URL's openStream() method throws an AccessControlException.
10-06-2004

EVALUATION Too late for Hopper. Committing to Mantis. ###@###.### 2002-05-23 I was not able to reproduce this problem using my own (local) example. Spaces in the directory names seem to work fine with jre 1.4.0 and 1.4.1 When I used example specified by the submitter, I got the exception. I looked at the directory, and found that the directory is linked to itself (so "space dir" has a softlink called "space dir" that is linked to itself. Why is it there? Could you please remove it and try running applet. I believe that it will work just fine. Please update the bug with your findings. ###@###.### 2002-05-31 Submitter removed the softlink from the example. I run test case again and verified that there are no exceptions now in the Java Console. Submitter is currently on vacation. I will wait untill he can verify that removal of softlink fixes the problem before closing the bug as "user error". ###@###.### 2002-06-07 The exception is still thrown in Java Console. I tried running the applet through appletviewer. The same exceptions that are trown in Java Console are thrown in korn shell window if I am running the jdk14bug.htm with appletviewer 1.4.1 These exceptions do not occur in appletviewer from jdk1.3.1. I have two more examples of applets that have spaces in their paths, but there are no exceptions while running those applets with either jdk1.4.1 or 1.3.1 - one of the differences that I see between my examples and submitter's is that submitter's example is reading a string from a text file to be displayed inside applet's box. This does not look like plug-in bug, since it is reproducible with appletviewer. ###@###.### 2002-06-10 Looks like this bug is a duplicate of 4697178. Fix for bug 4697178 is planned for hopper. ###@###.### 2002-06-11 close as aforementioned duplicat (4697178) and will be committed to 1.4.0_03 ###@###.### 2002-06-11
11-06-2002