Uploaded image for project: 'JBoss VFS'
  1. JBoss VFS
  2. JBVFS-204

File system operations require both java.io.FilePermission and VirtualFilePermission

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.2.12.Final, 3.5.0.Alpha1
    • 3.2.11.Final, 3.5.0.Alpha1
    • None
    • None

      File system operations in org.jboss.vfs.VirtualFile check for VirtualFilePermission and then execute the particular io operation which needs java.io.FilePermission if Security Manager is enabled. Because of this a user has to duplicate each permission on a deployment for both VirtualFilePermission and FilePermission.

      It should be enough to check for VirtualFilePermission and execute the io operation inside of the privileged block afterwards.

              istudens@redhat.com Ivo Studensky
              istudens@redhat.com Ivo Studensky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: