Author: markt
Date: Thu Jan  6 18:09:23 2011
New Revision: 1055975

URL: http://svn.apache.org/viewvc?rev=1055975&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50550
Make sure PROPFIND,MKCOL,PROPFIND returns 404,201,207 rather than 404,201,404

Modified:
    tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java
    tomcat/trunk/webapps/docs/changelog.xml

Modified: tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java?rev=1055975&r1=1055974&r2=1055975&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java 
(original)
+++ tomcat/trunk/java/org/apache/naming/resources/ProxyDirContext.java Thu Jan  
6 18:09:23 2011
@@ -1694,10 +1694,16 @@ public class ProxyDirContext implements 
         if (cache == null)
             return false;
         synchronized (cache) {
-            return cache.unload(name);
+            boolean result = cache.unload(name);
+            // To ensure correct operation, particularly of WebDAV, unload
+            // the resource with and without a trailing /
+            if (name.endsWith("/")) {
+                cache.unload(name.substring(0, name.length() -1));
+            } else {
+                cache.unload(name + "/");
+            }
+            return result;
         }
     }
-
-
 }
 

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1055975&r1=1055974&r2=1055975&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Thu Jan  6 18:09:23 2011
@@ -184,6 +184,11 @@
         than a list of comma-separated or semi-colon-separated expressions.
         (markt)
       </update>
+      <fix>
+        <bug>50550</bug>: When a new directory is created (e.g. via WebDAV)
+        ensure that a subsequent request for that directory does not result in 
a
+        404 response. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to