tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r909636 - /tomcat/trunk/java/org/apache/catalina/servlets/WebdavServlet.java
Date Fri, 12 Feb 2010 22:12:48 GMT
Author: markt
Date: Fri Feb 12 22:12:48 2010
New Revision: 909636

URL: http://svn.apache.org/viewvc?rev=909636&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48318
Handle case where WebDAV resource is in directory listing but is not accessible

Modified:
    tomcat/trunk/java/org/apache/catalina/servlets/WebdavServlet.java

Modified: tomcat/trunk/java/org/apache/catalina/servlets/WebdavServlet.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/servlets/WebdavServlet.java?rev=909636&r1=909635&r2=909636&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/servlets/WebdavServlet.java (original)
+++ tomcat/trunk/java/org/apache/catalina/servlets/WebdavServlet.java Fri Feb 12 22:12:48
2010
@@ -2039,6 +2039,11 @@
             return;
 
         CacheEntry cacheEntry = resources.lookupCache(path);
+        if (!cacheEntry.exists) {
+        	// File is in directory listing but doesn't appear to exist
+        	// Broken symlink or odd permission settings?
+        	return;
+        }
 
         generatedXML.writeElement(null, "response", XMLWriter.OPENING);
         String status = new String("HTTP/1.1 " + WebdavStatus.SC_OK + " "



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


Mime
View raw message