db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1507215 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests: tests/derbynet/ tests/engine/ tests/lang/ util/
Date Fri, 26 Jul 2013 08:33:23 GMT
Author: kahatlen
Date: Fri Jul 26 08:33:23 2013
New Revision: 1507215

URL: http://svn.apache.org/r1507215
Log:
DERBY-6295: Allow tests to show detailed error when spawning new process fails

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/GetCurrentPropertiesTest.policy
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetworkServerControlApiTest.policy
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/RuntimeInfoTest.policy
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SysinfoTest.policy
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/noDeregisterPermission.policy
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/resultSetReader.policy
    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/tests/derbynet/GetCurrentPropertiesTest.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/GetCurrentPropertiesTest.policy?rev=1507215&r1=1507214&r2=1507215&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/GetCurrentPropertiesTest.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/GetCurrentPropertiesTest.policy
Fri Jul 26 08:33:23 2013
@@ -171,10 +171,12 @@ grant codeBase "${derbyTesting.codejar}d
 grant codeBase "${derbyTesting.testjar}derbyTesting.jar" {
 
   // just add the complete gross policy change for ServerPropertiesTest
-  // execute permission is for 'java', but this can be at a variety of locations.
-  permission java.io.FilePermission "<<ALL FILES>>", "execute";
   permission java.security.SecurityPermission "getPolicy";
 
+  // 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";
+
   // Access all properties using System.getProperties
   permission java.util.PropertyPermission "*", "read, write";
   
@@ -195,10 +197,12 @@ grant codeBase "${derbyTesting.testjar}d
 grant codeBase "${derbyTesting.codeclasses}" {
 
   // just add the complete gross policy change for ServerPropertiesTest
-  // execute permission is for 'java', but this can be at a variety of locations.
-  permission java.io.FilePermission "<<ALL FILES>>", "execute";
   permission java.security.SecurityPermission "getPolicy";
 
+  // 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";
+
   // Access all properties using System.getProperties
   permission java.util.PropertyPermission "*", "read, write";
   

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetworkServerControlApiTest.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetworkServerControlApiTest.policy?rev=1507215&r1=1507214&r2=1507215&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetworkServerControlApiTest.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/NetworkServerControlApiTest.policy
Fri Jul 26 08:33:23 2013
@@ -169,8 +169,10 @@ grant codeBase "${derbyTesting.testjar}d
   // Access all files under ${user.dir}to write the test directory structure
   permission java.io.FilePermission "${user.dir}${/}-", "read,write,delete"; 
   // just add the complete gross policy change for NetworkServerControlApiTest
-  // execute permission is for 'java', but this can be at a variety of locations.
-  permission java.io.FilePermission "<<ALL FILES>>", "execute";
+
+  // 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";
 
   // When running with useprocess=false need to install and uninstall
   // the security manager and allow setIO to change the system err and out
@@ -196,8 +198,10 @@ grant codeBase "${derbyTesting.codeclass
   permission java.io.FilePermission "${derby.system.home}", "read";
   permission java.io.FilePermission "${derby.system.home}${/}-", "read, write, delete";
   // just add the complete gross policy change for NetworkServerControlApiTest
-  // execute permission is for 'java', but this can be at a variety of locations.
-  permission java.io.FilePermission "<<ALL FILES>>", "execute";
+
+  // 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";
 
   // combination of client and server side.
   permission java.net.SocketPermission "127.0.0.1", "accept,connect,resolve";

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/RuntimeInfoTest.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/RuntimeInfoTest.policy?rev=1507215&r1=1507214&r2=1507215&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/RuntimeInfoTest.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/RuntimeInfoTest.policy
Fri Jul 26 08:33:23 2013
@@ -361,7 +361,9 @@ grant {
     permission java.util.PropertyPermission "derbyRoutineSecurityTest.yes", "read";
     
     //client side: test execs another jvm with relative path
-  permission java.io.FilePermission "<<ALL FILES>>", "execute";
+  // DERBY-6295: Also grant read permission so that detailed error
+  // message is shown.
+  permission java.io.FilePermission "${java.home}${/}-", "execute, read";
 };
 
 // These permissions are needed when testing code instrumented with EMMA.

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy?rev=1507215&r1=1507214&r2=1507215&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/ServerPropertiesTest.policy
Fri Jul 26 08:33:23 2013
@@ -175,10 +175,12 @@ grant codeBase "${derbyTesting.codejar}d
 grant codeBase "${derbyTesting.testjar}derbyTesting.jar" {
 
   // just add the complete gross policy change for ServerPropertiesTest
-  // execute permission is for 'java', but this can be at a variety of locations.
-  permission java.io.FilePermission "<<ALL FILES>>", "execute";
   permission java.security.SecurityPermission "getPolicy";
 
+  // 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";
+
   // Access all properties using System.getProperties
   permission java.util.PropertyPermission "*", "read, write";
   
@@ -199,10 +201,12 @@ grant codeBase "${derbyTesting.testjar}d
 grant codeBase "${derbyTesting.codeclasses}" {
 
   // just add the complete gross policy change for ServerPropertiesTest
-  // execute permission is for 'java', but this can be at a variety of locations.
-  permission java.io.FilePermission "<<ALL FILES>>", "execute";
   permission java.security.SecurityPermission "getPolicy";
 
+  // 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";
+
   // Access all properties using System.getProperties
   permission java.util.PropertyPermission "*", "read, write";
   

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SysinfoTest.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SysinfoTest.policy?rev=1507215&r1=1507214&r2=1507215&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SysinfoTest.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/SysinfoTest.policy
Fri Jul 26 08:33:23 2013
@@ -244,7 +244,9 @@ grant codeBase "${derbyTesting.testjar}d
   permission org.apache.derby.security.SystemPermission "server", "control,monitor";
   
   //client side: test execs another jvm with relative path
-  permission java.io.FilePermission "<<ALL FILES>>", "execute";
+  // DERBY-6295: Also grant read permission so that detailed error
+  // message is shown.
+  permission java.io.FilePermission "${java.home}${/}-", "execute, read";
 };
 
 //
@@ -323,7 +325,9 @@ grant codeBase "${derbyTesting.codeclass
   permission org.apache.derby.security.SystemPermission "server", "control,monitor";
   
   //client side: test execs another jvm with relative path
-  permission java.io.FilePermission "<<ALL FILES>>", "execute";
+  // DERBY-6295: Also grant read permission so that detailed error
+  // message is shown.
+  permission java.io.FilePermission "${java.home}${/}-", "execute, read";
 };
 
 // JUnit jar file tries to read junit.properties in the user's

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/noDeregisterPermission.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/noDeregisterPermission.policy?rev=1507215&r1=1507214&r2=1507215&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/noDeregisterPermission.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/noDeregisterPermission.policy
Fri Jul 26 08:33:23 2013
@@ -225,8 +225,9 @@ grant codeBase "${derbyTesting.testjar}d
   // Access all files under ${user.dir}to write the test directory structure
   permission java.io.FilePermission "${user.dir}${/}-", "read,write,delete"; 
 
-  // Tests need to be able to exec a java program.
-  permission java.io.FilePermission "${java.home}${/}-", "execute";	
+  // 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";
 
   // When running with useprocess=false need to install and uninstall
   // the security manager and allow setIO to change the system err and out
@@ -306,8 +307,9 @@ grant codeBase "${derbyTesting.codeclass
   // Also covers extin, extout and extinout locations
   permission java.io.FilePermission "${user.dir}${/}-", "read,write,delete"; 
    
-  // Tests need to be able to exec a java program.
-  permission java.io.FilePermission "${java.home}${/}-", "execute";
+  // 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";
  
   // These permissions are needed to load the JCE for encryption with Sun and IBM JDK131.
   // JDK14 has the JCE  preloaded

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/resultSetReader.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/resultSetReader.policy?rev=1507215&r1=1507214&r2=1507215&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/resultSetReader.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/resultSetReader.policy
Fri Jul 26 08:33:23 2013
@@ -229,8 +229,9 @@ grant codeBase "${derbyTesting.testjar}d
   // Access all files under ${user.dir}to write the test directory structure
   permission java.io.FilePermission "${user.dir}${/}-", "read,write,delete"; 
 
-  // Tests need to be able to exec a java program.
-  permission java.io.FilePermission "${java.home}${/}-", "execute";	
+  // 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";
 
   // When running with useprocess=false need to install and uninstall
   // the security manager and allow setIO to change the system err and out
@@ -310,8 +311,9 @@ grant codeBase "${derbyTesting.codeclass
   // Also covers extin, extout and extinout locations
   permission java.io.FilePermission "${user.dir}${/}-", "read,write,delete"; 
    
-  // Tests need to be able to exec a java program.
-  permission java.io.FilePermission "${java.home}${/}-", "execute";
+  // 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";
  
   // These permissions are needed to load the JCE for encryption with Sun and IBM JDK131.
   // JDK14 has the JCE  preloaded

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=1507215&r1=1507214&r2=1507215&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
Fri Jul 26 08:33:23 2013
@@ -242,8 +242,9 @@ grant codeBase "${derbyTesting.testjar}d
   // Access all files under ${user.dir}to write the test directory structure
   permission java.io.FilePermission "${user.dir}${/}-", "read,write,delete"; 
 
-  // Tests need to be able to exec a java program.
-  permission java.io.FilePermission "${java.home}${/}-", "execute";	
+  // 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";
 
   // When running with useprocess=false need to install and uninstall
   // the security manager and allow setIO to change the system err and out
@@ -323,8 +324,9 @@ grant codeBase "${derbyTesting.codeclass
   // Also covers extin, extout and extinout locations
   permission java.io.FilePermission "${user.dir}${/}-", "read,write,delete"; 
    
-  // Tests need to be able to exec a java program.
-  permission java.io.FilePermission "${java.home}${/}-", "execute";
+  // 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";
  
   // These permissions are needed to load the JCE for encryption with Sun and IBM JDK131.
   // JDK14 has the JCE  preloaded



Mime
View raw message