This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new a2adb961a6 Make handling of allowSpecialPaths< within the WebDAV
servlet consistent
a2adb961a6 is described below
commit a2adb961a634f0ffa915c5b41cb524dfd7a5177a
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 d98ffd59e5..b5a3c428b3 100644
--- a/java/org/apache/catalina/servlets/WebdavServlet.java
+++ b/java/org/apache/catalina/servlets/WebdavServlet.java
@@ -2299,6 +2299,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 f0d04f8c55..d3db96eb6d 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -248,6 +248,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]