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 ma...@apache.org on 2007/02/08 17:06:04 UTC

svn commit: r504938 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy

Author: mamta
Date: Thu Feb  8 08:06:04 2007
New Revision: 504938

URL: http://svn.apache.org/viewvc?view=rev&rev=504938
Log:
Fix for DERBY-2302
It required granting derbyClient.jar 2 additional set of permissions 
1)Property read permission for user.dir since that's where the Junit test wants to have the client tracing done. 
   permission java.util.PropertyPermission "user.dir", "read"; 
2)Also, in order to read/write in user.dir directory, the client jar needs following additional permission 
permission java.io.FilePermission "${user.dir}${/}-", "read,write"; 


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?view=diff&rev=504938&r1=504937&r2=504938
==============================================================================
--- 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 Feb  8 08:06:04 2007
@@ -85,6 +85,12 @@
   // the classpath.
   permission java.util.PropertyPermission "derby.*", "read";
 
+  // DERBY-2302: derbyclient.jar needs to be able to read the user.dir property in order to
+  // do tracing in that directory. Also, it needs read/write permissions in user.dir in order
+  // to create the trace files in that directory.
+  permission java.util.PropertyPermission "user.dir", "read";
+  permission java.io.FilePermission "${user.dir}${/}-", "read, write"; 
+
 };
 
 //