db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r664632 - in /db/derby/code/trunk/java: drda/org/apache/derby/impl/drda/DssTrace.java testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
Date Mon, 09 Jun 2008 06:45:17 GMT
Author: kmarsden
Date: Sun Jun  8 23:45:17 2008
New Revision: 664632

URL: http://svn.apache.org/viewvc?rev=664632&view=rev
Log:
DERBY-3701 java.lang.Exception: DRDA_UnableToAccept.S:Unable to accept
connections and client hang if tracing is turned on but traceDirectory
does not exist

Fix permission error in NetworkServerControlApiTest with jars. Allow
trace directory to be writable.

Fix case where parent directory is null.


Modified:
    db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy

Modified: db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java?rev=664632&r1=664631&r2=664632&view=diff
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java (original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DssTrace.java Sun Jun  8 23:45:17
2008
@@ -180,7 +180,7 @@
                 // If we can't create the directory the exception will occur 
                 // when trying to create the trace file.
                 File traceDirectory = new File(fileName).getParentFile();
-                if (!PrivilegedFileOps.exists(traceDirectory))
+                if (traceDirectory != null)
                 {
                     PrivilegedFileOps.mkdirs(traceDirectory);
                 }

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=664632&r1=664631&r2=664632&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
Sun Jun  8 23:45:17 2008
@@ -126,7 +126,8 @@
   permission java.net.SocketPermission "localhost", "accept,connect";
   permission java.net.SocketPermission "${derbyTesting.clienthost}", "accept,connect";
   permission java.net.SocketPermission "${derbyTesting.serverhost}", "accept,connect";
-  
+  // Need to be able to write to trace file for NetworkServerControlApiTest
+  permission java.io.FilePermission "${user.dir}${/}system${/}trace${/}-", "write"; 
     // Needed for NetworkServerMBean access (see JMX section above)
   permission org.apache.derby.security.SystemPermission "server", "control,monitor";
   



Mime
View raw message