You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2014/06/12 11:17:49 UTC
svn commit: r1602102 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
Author: kahatlen
Date: Thu Jun 12 09:17:49 2014
New Revision: 1602102
URL: http://svn.apache.org/r1602102
Log:
DERBY-6610: suites.All cannot be run with classes without failures
Grant the derbyTesting.codeclasses code base permission to access
temporary files to allow DatabaseClassLoadingTest and
NativeAuthenticationServiceTest to run with classes.
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy?rev=1602102&r1=1602101&r2=1602102&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy Thu Jun 12 09:17:49 2014
@@ -335,7 +335,10 @@ grant codeBase "${derbyTesting.codeclass
// Tests need to be able to exec a java program. DERBY-6295: Also give them
// read permission so that detailed error message is shown.
permission java.io.FilePermission "${java.home}${/}-", "execute, read";
-
+
+ // needed to create a temp file in order to open a database in a jar file
+ permission java.io.FilePermission "${java.io.tmpdir}${/}-", "read,write,delete";
+
// These permissions are needed to load the JCE for encryption with Sun and IBM JDK131.
// JDK14 has the JCE preloaded
permission java.security.SecurityPermission "insertProvider.SunJCE";