Fix security exception when running under a SecurityManager
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 4 Feb 2011 11:07:18 +0000 (11:07 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 4 Feb 2011 11:07:18 +0000 (11:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1067147 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/security/SecurityClassLoad.java
webapps/docs/changelog.xml

index f444b9d..6bc480d 100644 (file)
@@ -131,6 +131,9 @@ public final class SecurityClassLoad {
             throws Exception {
         final String basePackage = "org.apache.coyote.";
         loader.loadClass(basePackage + "http11.AbstractOutputBuffer$1");
+        // Make sure system property is read at this point
+        Class<?> clazz = loader.loadClass(basePackage + "Constants");
+        clazz.newInstance();
     }
 
 
index a11110f..418f27b 100644 (file)
        <bug>50709</bug>: Make <code>ApplicationContextFacade</code> non-final to
        enable extension. (markt)
       </fix>
+      <fix>
+        When running under a security manager, user requests may fail with a
+        security exception. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">