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 0fcc9f5f3c Expand the explanation of the case sensitivity requirements
0fcc9f5f3c is described below

commit 0fcc9f5f3c97ac460fa55bc28ec9eb2c3ca6c819
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Nov 24 19:40:51 2026 +0000

    Expand the explanation of the case sensitivity requirements
---
 webapps/docs/config/resources.xml | 14 ++++++++------
 webapps/docs/security-howto.xml   | 20 ++++++++++++++++++--
 2 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/webapps/docs/config/resources.xml 
b/webapps/docs/config/resources.xml
index de8eb1d9e8..c6aa821852 100644
--- a/webapps/docs/config/resources.xml
+++ b/webapps/docs/config/resources.xml
@@ -72,9 +72,10 @@
         outside the web application base path. If not specified, the default
         value of the flag is <code>false</code>.</p>
         <p><b>NOTE: This flag MUST NOT be set to true on the Windows platform
-        (or any other OS which does not have a case sensitive filesystem),
-        as it will disable case sensitivity checks, allowing JSP source code
-        disclosure, among other security problems.</b></p>
+        (or in any other environment which does not have a case sensitive
+        filesystem), as it will disable a number of security measures and 
allow,
+        among other things, bypassing of security constraints, viewing of JSP
+        source code and direct access to the WEB-INF directory.</b></p>
       </attribute>
 
       <attribute name="archiveIndexStrategy" required="false">
@@ -219,9 +220,10 @@
       <p>This attribute is only available for <code>DirResourceSet</code> and
       <code>FileResourceSet</code>.</p>
       <p><b>NOTE: This flag MUST NOT be set to true on the Windows platform
-      (or any other OS which does not have a case sensitive filesystem),
-      as it will disable case sensitivity checks, allowing JSP source code
-      disclosure, among other security problems.</b></p>
+      (or in any other environment which does not have a case sensitive
+      filesystem), as it will disable a number of security measures and allow,
+      among other things, bypassing of security constraints, viewing of JSP
+      source code and direct access to the WEB-INF directory.</b></p>
     </attribute>
 
     <attribute name="base" required="true">
diff --git a/webapps/docs/security-howto.xml b/webapps/docs/security-howto.xml
index 03a032bbc1..92f999f86a 100644
--- a/webapps/docs/security-howto.xml
+++ b/webapps/docs/security-howto.xml
@@ -71,6 +71,21 @@
     can&apos;t change the Tomcat configuration, deploy new web applications or
     modify existing web applications. The Tomcat process runs with a umask of
     007 to maintain these permissions.</p>
+    <p>Tomcat expects to be running on an operating system, file system and 
Java
+    combination where <code>File.getCanonicalPath()</code> always returns the
+    same value (including case) for any given file. That requirement is met for
+    standard Linux and Windows production environments. Some non-standard (for
+    production) file systems where this is not the case include:</p>
+    <ul>
+    <li>kernel CIFS mount of an SMB share</li>
+    <li>vfat</li>
+    <li>ext4 casefold</li>
+    </ul>
+    <p>Running Tomcat in an enviroment where
+    <code>File.getCanonicalPath()</code> does not always returns the same value
+    for a given file will disable a number of security measures and allow, 
among
+    other things, bypassing of security constraints, viewing of JSP source code
+    and direct access to the WEB-INF directory.</p>
     <p>At the network level, consider using a firewall to limit both incoming
     and outgoing connections to only those connections you  expect to be
     present.</p>
@@ -405,8 +420,9 @@
       the links will be followed when deleting the context resources. Changing
       this setting from the default of <code>false</code> on case insensitive
       operating systems (this includes Windows) will disable a number of
-      security measures and allow, among other things, direct access to the
-      WEB-INF directory.</p>
+      security measures and allow, among other things, bypassing of security
+      constraints, viewing of JSP source code and direct access to the WEB-INF
+      directory.</p>
 
       <p>The <strong>sessionCookiePathUsesTrailingSlash</strong> can be used to
       work around a bug in a number of browsers (Internet Explorer, Safari and


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to