Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4142973

FilePermission not case insensitive enough under Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rschemersunw Roland Schemers (Inactive)
              Reporter:
              bscheiflsunw Bob Scheifler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: