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 2006/09/12 07:59:34 UTC
svn commit: r442464 - in
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet:
sysinfo.policy sysinfo_withproperties.policy
Author: kahatlen
Date: Mon Sep 11 22:59:34 2006
New Revision: 442464
URL: http://svn.apache.org/viewvc?view=rev&rev=442464
Log:
DERBY-1832: sysinfo test fails with "access denied
(java.util.PropertyPermission java.class.path read)" when
derbyclient.jar is first in classpath
Grant derbyclient.jar privileges needed for sysinfo and
sysinfo_withproperties.
Modified:
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo.policy
db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo_withproperties.policy
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo.policy?view=diff&rev=442464&r1=442463&r2=442464
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo.policy (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo.policy Mon Sep 11 22:59:34 2006
@@ -26,3 +26,9 @@
//client side: test execs another jvm with relative path
permission java.io.FilePermission "<<ALL FILES>>", "execute";
};
+
+// See DERBY-1832
+grant codeBase "${derbyTesting.codejar}/derbyclient.jar" {
+ permission java.io.FilePermission "${derbyTesting.codedir}${/}*", "read";
+ permission java.util.PropertyPermission "java.class.path", "read";
+};
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo_withproperties.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo_withproperties.policy?view=diff&rev=442464&r1=442463&r2=442464
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo_withproperties.policy (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/sysinfo_withproperties.policy Mon Sep 11 22:59:34 2006
@@ -26,3 +26,9 @@
//client side: test execs another jvm with relative path
permission java.io.FilePermission "<<ALL FILES>>", "execute";
};
+
+// See DERBY-1832
+grant codeBase "${derbyTesting.codejar}/derbyclient.jar" {
+ permission java.io.FilePermission "${derbyTesting.codedir}${/}*", "read";
+ permission java.util.PropertyPermission "java.class.path", "read";
+};