[jboss-cvs] JBossAS SVN: r61009 - branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/security.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 28 13:33:16 EST 2007


Author: anil.saldhana at jboss.com
Date: 2007-02-28 13:33:15 -0500 (Wed, 28 Feb 2007)
New Revision: 61009

Modified:
   branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/security/GenericHeaderAuthenticator.java
Log:
check if the configuration for http headers and session cookies are present

Modified: branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/security/GenericHeaderAuthenticator.java
===================================================================
--- branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/security/GenericHeaderAuthenticator.java	2007-02-28 17:25:30 UTC (rev 61008)
+++ branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/security/GenericHeaderAuthenticator.java	2007-02-28 18:33:15 UTC (rev 61009)
@@ -120,6 +120,9 @@
          if(trace)
             log.trace("getUserId exception", e);
       }
+      if(ids == null || ids.length() == 0)
+         throw new IllegalStateException("Http headers configuration in tomcat service missing");
+      
       StringTokenizer st = new StringTokenizer(ids,",");
       while(st.hasMoreTokens())
       {
@@ -155,6 +158,9 @@
          if(trace)
             log.trace("checkSessionCookie exception", e);
       }
+      if(ids == null || ids.length() == 0)
+         throw new IllegalStateException("Session cookies configuration in tomcat service missing");
+      
       StringTokenizer st = new StringTokenizer(ids,",");
       while(st.hasMoreTokens())
       { 




More information about the jboss-cvs-commits mailing list