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

create index can fail under the SecurityManager when trying to access files in the tmp folder of a database

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 10.0.2.1, 10.1.1.0, 10.2.1.6
    • 10.1.3.1, 10.2.1.6
    • Store
    • None

    Description

      Seen in tests lang/wisconsin.sql and jdbcapi/maxfieldsize.java when running with the network server and the new security policy file that grants permisions on a per-jar basis. Unless permission is given to the network serve code (since it is in the stack) to access temp files in the database the test will fail.

      permission java.io.FilePermission "${derby.system.home}${/}wombat${/}tmp${/}-", "read, write, delete";

      Most likely the temp files are being accessed in without a privileged block.

      Easy to reproduce once the new policy file changes are checked in (see http://wiki.apache.org/db-derby/SecurityManagerTesting) by removing the permission in the derby_tests.policy file and running these tests using the jar files.

      Attachments

        1. derby-616.diff
          12 kB
          Suresh Thalamati

        Issue Links

          Activity

            People

              tsuresh Suresh Thalamati
              djd Daniel John Debrunner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: