cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: rev 75985 - in cocoon/trunk: . src/java/org/apache/cocoon/bean
Date Tue, 16 Nov 2004 05:23:58 GMT
Author: antonio
Date: Mon Nov 15 21:23:56 2004
New Revision: 75985

Modified:
   cocoon/trunk/src/java/org/apache/cocoon/bean/CocoonWrapper.java
   cocoon/trunk/status.xml
Log:
Fix #32214: Context directory not required to be writable by the CLI

Modified: cocoon/trunk/src/java/org/apache/cocoon/bean/CocoonWrapper.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/bean/CocoonWrapper.java	(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/bean/CocoonWrapper.java	Mon Nov 15 21:23:56 2004
@@ -260,9 +260,14 @@
             throw new IOException("'" + d + "' is not a directory.");
         }
 
-        if (!(d.canRead() && d.canWrite())) {
+        if (!d.canRead()) {
             throw new IOException(
-                "Directory '" + d + "' is not readable/writable");
+                "Directory '" + d + "' is not readable");
+        }
+
+        if ("working".equals( type ) && !d.canWrite()) {
+            throw new IOException(
+                "Directory '" + d + "' is not writable");
         }
 
         return d;

Modified: cocoon/trunk/status.xml
==============================================================================
--- cocoon/trunk/status.xml	(original)
+++ cocoon/trunk/status.xml	Mon Nov 15 21:23:56 2004
@@ -368,6 +368,9 @@
    </action>
  </release>
  <release version="2.1.6" date="TBD">
+   <action dev="AG" type="fix" fixes-bug="32214" due-to="Rick Tessner" due-to-email="rick@apache.org">
+     Context directory not required to be writable by the CLI
+   </action>
    <action dev="CZ" type="fix" fixes-bug="32199">
      Portal: If a coplet has an error, the error-uri has been called twice. This is fixed
now.
    </action>

Mime
View raw message