Derby
  1. Derby
  2. DERBY-1761

Several backkup tests fail due to permisison exception accessing user.dir

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3.1.4
    • Component/s: Store, Test
    • Labels:
      None
    • Environment:
    • Bug behavior facts:
      Regression Test Failure

      Description

      Example
      > ij(CONNECTION4)> call SYSCS_UTIL.SYSCS_BACKUP_DATABASE('extinout/mybackup2');
      > ERROR 38000: The exception 'java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)' was thrown while evaluating an expression.

      List of failed tests:

      derbyall/encryptionAll/encryptionAll.fail:store/encryptionKey.sql
      derbyall/storeall/storeall.fail:store/rollForwardRecovery.sql
      derbyall/storeall/storeall.fail:store/backupRestore1.java
      derbyall/storeall/storeall.fail:store/OnlineBackupTest1.java
      derbyall/storeall/storeall.fail:store/onlineBackupTest2.sql
      derbyall/storeall/storeall.fail:store/onlineBackupTest4.sql
      derbyall/storeall/storeall.fail:storetests/st_1.sql
      derbyall/storeall/storeall.fail:store/RecoveryAfterBackupSetup.java
      derbyall/storeall/storeall.fail:store/RecoveryAfterBackup.java

        Activity

        Hide
        Dyre Tjeldvoll added a comment -

        This issue is resolved and has not been updated in the last 12 months (since 24/Jan/07).

        Show
        Dyre Tjeldvoll added a comment - This issue is resolved and has not been updated in the last 12 months (since 24/Jan/07).
        Hide
        Rajesh Kartha added a comment -

        I have verified that these issues no longer exist in the latest IBM 142 release [ build cxia32142-20061124 (SR7)], hence marking this issue resolved.

        Derby version tested: 10.2.2.0 - (485682)

        Show
        Rajesh Kartha added a comment - I have verified that these issues no longer exist in the latest IBM 142 release [ build cxia32142-20061124 (SR7)], hence marking this issue resolved. Derby version tested: 10.2.2.0 - (485682)
        Hide
        Myrna van Lunteren added a comment -

        This is an ibm142 jvm issue - that is, assuming you ran with SR4 or 5.
        The problem is, in essence like this:
        java.util.propertyPermission is granted in our derby_tests.policy to derbytools.jar - so ij has that permission. Ij calls, (when using the embedded driver), the backup procedures
        that execute functions in classes which are in derby.jar. They do a File.mkdirs() (in
        Rawstore.java) which in the java code apparently go through getCanonicalPath which
        needs user.dir property read permission.
        So, in other jvm versions, the propertyPermission user.dir read is apparently passed on the the methods called, with this particular jvm build, it's not.

        The ibm PMR I logged this under is: 38746,001,866
        A fix has been tested & will be made available with the next SR.
        The problem can be worked-around by giving derby.jar the user.dir read permission.

        Show
        Myrna van Lunteren added a comment - This is an ibm142 jvm issue - that is, assuming you ran with SR4 or 5. The problem is, in essence like this: java.util.propertyPermission is granted in our derby_tests.policy to derbytools.jar - so ij has that permission. Ij calls, (when using the embedded driver), the backup procedures that execute functions in classes which are in derby.jar. They do a File.mkdirs() (in Rawstore.java) which in the java code apparently go through getCanonicalPath which needs user.dir property read permission. So, in other jvm versions, the propertyPermission user.dir read is apparently passed on the the methods called, with this particular jvm build, it's not. The ibm PMR I logged this under is: 38746,001,866 A fix has been tested & will be made available with the next SR. The problem can be worked-around by giving derby.jar the user.dir read permission.

          People

          • Assignee:
            Unassigned
            Reporter:
            Daniel John Debrunner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development