This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new fe887ac357 Make handling of allowSpecialPaths< within the WebDAV 
servlet consistent
fe887ac357 is described below

commit fe887ac35797ed4d800ed19dfc1cadc520a54a10
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 021fb4ae5a..f256b5b1a8 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]

Reply via email to