Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-622

sysinfo incorrectly requires permission on Derby jar files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • Tools
    • None
    • Low
    • Security

    Description

      Running the test derbynet/sysinfo.java requires this permission in derby_tests.policy, in order to read the jar files.

      permission java.io.FilePermission "${csinfo.codedir}${/}*", "read"

      But according to the Java security specs:

      'Note: code can always read a file from the same directory it's in (or a subdirectory of that directory); it does not need explicit permission to do so.'

      Probably means a privileged block is required when accessing the contents of the jar files in sysinfo

      Attachments

        1. DERBY-622_step1.diff
          2 kB
          Myrna van Lunteren

        Activity

          People

            Unassigned Unassigned
            djd Daniel John Debrunner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: