Make sure PROPFIND,MKCOL,PROPFIND returns 404,201,207 rather than 404,201,404
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1055975 13f79535-47bb-0310-9956-
ffa450edef68
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;
}
}
-
-
}
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">