Handle case where WebDAV resource is in directory listing but is not accessible
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@909636
13f79535-47bb-0310-9956-
ffa450edef68
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 + " "