FileURLConnection sometimes requires incorrect FilePermission accessing a Windows UNC path

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 7u5
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: