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

FilePermission not case insensitive enough under Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.2.0
    • security-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: