This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new c3dcd131ee Make handling of allowSpecialPaths< within the WebDAV
servlet consistent
c3dcd131ee is described below
commit c3dcd131ee3154a07d6acab661f8dff2042afbfd
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 a77cfb0808..2faf9efdbb 100644
--- a/java/org/apache/catalina/servlets/WebdavServlet.java
+++ b/java/org/apache/catalina/servlets/WebdavServlet.java
@@ -2305,6 +2305,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 ecc3fec596..bff0c4fecc 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]