-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
None
-
Affects Version/s: 1.2.0
-
Component/s: security-libs
-
None
-
generic
-
generic
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.
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.
- duplicates
-
JDK-4141872 FilePermission makes symlinks useless
-
- Closed
-
- relates to
-
JDK-8164705 Remove pathname canonicalization from FilePermission
-
- Closed
-