This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new b0dad11772 Make handling of allowSpecialPaths< within the WebDAV
servlet consistent
b0dad11772 is described below
commit b0dad117720095569023b77f14a938012e29ad7e
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Nov 24 18:59:49 2026 +0000
Make handling of allowSpecialPaths< within the WebDAV servlet consistent
---
java/org/apache/catalina/servlets/WebdavServlet.java | 5 +++++
webapps/docs/changelog.xml | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/java/org/apache/catalina/servlets/WebdavServlet.java
b/java/org/apache/catalina/servlets/WebdavServlet.java
index 5eef729fa1..978d09f950 100644
--- a/java/org/apache/catalina/servlets/WebdavServlet.java
+++ b/java/org/apache/catalina/servlets/WebdavServlet.java
@@ -2304,6 +2304,11 @@ public class WebdavServlet extends DefaultServlet
implements PeriodicEventListen
log("Copy: " + source + " To: " + dest + " Infinite: " +
infiniteCopy);
}
+ // Silently skip copying the special directories if access has been
disabled.
+ if (isSpecialPath(source)) {
+ return true;
+ }
+
WebResource sourceResource = resources.getResource(source);
if (sourceResource.isDirectory()) {
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index f2a008de85..878864fdd0 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -144,6 +144,10 @@
the request does not support preemptive authentication, then the
request
is denied. (markt)
</fix>
+ <fix>
+ Make handling of <code>allowSpecialPaths</code> within the WebDAV
+ servlet consistent for all WebDAV methods. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]