JDK-4142973 : FilePermission not case insensitive enough under Windows
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-05-27
  • Updated: 2016-08-24
  • Resolved: 1998-07-17
Related Reports
Duplicate :  
Relates :  
Description
Given a policy file:

grant {
    permission java.io.FilePermission "goober", "read,write,delete";
}

then an attempt to do:

new File("GooBer").mkdir();

under Windows, when the directory does not yet exist, will result in a security exception, because FilePermission uses getCanonicalPath, which does not canonicalize case for nonexistent files and directories.

Comments
EVALUATION this will be fixed with 4141872
11-06-2004

WORK AROUND Can't think of a good one.
11-06-2004

PUBLIC COMMENTS Given a policy file: grant { permission java.io.FilePermission "goober", "read,write,delete"; } then an attempt to do: new File("GooBer").mkdir(); under Windows, when the directory does not yet exist, will result in a security exception, because FilePermission uses getCanonicalPath, which does not canonicalize case for nonexistent files and directories.
10-06-2004