[ 
http://issues.apache.org/jira/browse/DERBY-1761?page=comments#action_12430379 ] 
            
Myrna van Lunteren commented on DERBY-1761:
-------------------------------------------

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.


> Several backkup tests fail due to permisison exception accessing user.dir
> -------------------------------------------------------------------------
>
>                 Key: DERBY-1761
>                 URL: http://issues.apache.org/jira/browse/DERBY-1761
>             Project: Derby
>          Issue Type: Bug
>          Components: Store, Test, Regression Test Failure
>         Environment: IBM 142 Suse Linux 10 - insane - run from jars
> Classpath
> /home/djd/derby_testing/out2006-08-23-1659/lib/derbyTesting.jar:/home/djd/derby_testing/out2006-08-23-1659/lib/derbynet.jar:/home/djd/derby_testing/out2006-08-23-1659/lib/derbytools.jar:/home/djd/derby_testing/out2006-08-23-1659/lib/derbyclient.jar:/home/djd/derby/thirdparty/jakarta-oro-2.0.8.jar:/home/djd/junit3.8.2/junit.jar
>            Reporter: Daniel John Debrunner
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to