Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=27122
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 22 May 2011 22:54:15 +0000 (22:54 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 22 May 2011 22:54:15 +0000 (22:54 +0000)
Remove a workaround for a very old and since fixed Mozilla bug and change the default value of the securePagesWithPragma attribute of the Authenticator Valves to false to reduce the likelihood of issues when downloading files with IE.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1126273 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/authenticator/AuthenticatorBase.java
webapps/docs/changelog.xml
webapps/docs/config/valve.xml

index baf6e5a..fa99f81 100644 (file)
@@ -143,9 +143,9 @@ public abstract class AuthenticatorBase extends ValveBase
 
     /**
      * Flag to determine if we disable proxy caching with headers incompatible
-     * with IE 
+     * with IE.
      */
-    protected boolean securePagesWithPragma = true;
+    protected boolean securePagesWithPragma = false;
     
     /**
      * The Java class name of the secure random number generator class to be
@@ -466,14 +466,10 @@ public abstract class AuthenticatorBase extends ValveBase
         // Make sure that constrained resources are not cached by web proxies
         // or browsers as caching can provide a security hole
         if (constraints != null && disableProxyCaching && 
-            // FIXME: Disabled for Mozilla FORM support over SSL 
-            // (improper caching issue)
-            //!request.isSecure() &&
+            !request.isSecure() &&
             !"POST".equalsIgnoreCase(request.getMethod())) {
             if (securePagesWithPragma) {
-                // FIXME: These cause problems with downloading office docs
-                // from IE under SSL and may not be needed for newer Mozilla
-                // clients.
+                // Note: These can cause problems with downloading files with IE
                 response.setHeader("Pragma", "No-cache");
                 response.setHeader("Cache-Control", "no-cache");
             } else {
index ec89135..fd49f6c 100644 (file)
   <subsection name="Catalina">
     <changelog>
       <fix>
+        <bug>27122</bug>: Remove a workaround for a very old and since fixed
+        Mozilla bug and change the default value of the securePagesWithPragma
+        attribute of the Authenticator Valves to false. These changes should
+        reduce the likelihood of issues when downloading files with IE. (markt) 
+      </fix>
+      <fix>
         <bug>35054</bug>: Check that a file is not specified for a Host&apos;s
         appBase and log an error if it is. (markt)
       </fix>
index 06f945d..546c3e8 100644 (file)
         caching issues in some browsers by using
         <code>Cache-Control: private</code> rather than the default of
         <code>Pragma: No-cache</code> and <code>Cache-control: No-cache</code>.
-        If not set, the default value of <code>true</code> will be used.</p>
+        If not set, the default value of <code>false</code> will be used.</p>
       </attribute>
 
       <attribute name="secureRandomAlgorithm" required="false">
         caching issues in some browsers by using
         <code>Cache-Control: private</code> rather than the default of
         <code>Pragma: No-cache</code> and <code>Cache-control: No-cache</code>.
-        If not set, the default value of <code>true</code> will be used.</p>
+        If not set, the default value of <code>false</code> will be used.</p>
       </attribute>
 
       <attribute name="secureRandomAlgorithm" required="false">
         caching issues in some browsers by using
         <code>Cache-Control: private</code> rather than the default of
         <code>Pragma: No-cache</code> and <code>Cache-control: No-cache</code>.
-        If not set, the default value of <code>true</code> will be used.</p>
+        If not set, the default value of <code>false</code> will be used.</p>
       </attribute>
 
       <attribute name="secureRandomAlgorithm" required="false">
         caching issues in some browsers by using
         <code>Cache-Control: private</code> rather than the default of
         <code>Pragma: No-cache</code> and <code>Cache-control: No-cache</code>.
-        If not set, the default value of <code>true</code> will be used.</p>
+        If not set, the default value of <code>false</code> will be used.</p>
       </attribute>
 
       <attribute name="secureRandomAlgorithm" required="false">
         caching issues in some browsers by using
         <code>Cache-Control: private</code> rather than the default of
         <code>Pragma: No-cache</code> and <code>Cache-control: No-cache</code>.
-        If not set, the default value of <code>true</code> will be used.</p>
+        If not set, the default value of <code>false</code> will be used.</p>
       </attribute>
 
       <attribute name="secureRandomAlgorithm" required="false">