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

FileURLConnection sometimes requires incorrect FilePermission accessing a Windows UNC path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7u5
    • security-libs
    • None

      When running with a JAR on Windows loaded from a UNC path and enabling the security manager, calls to ClassLoader.getResource (and getResourceAsStream) fail even though the requested resource exists in the JAR.

      Debugging with java.security.debug shows that the operation requests a FilePermission for a different file than the one where the resource resides in.

            Unassigned Unassigned
            kwaagan Kristian Waagan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: