[jboss-cvs] JBossAS SVN: r61010 - trunk/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:35:47 EST 2007


Author: anil.saldhana at jboss.com
Date: 2007-02-28 13:35:46 -0500 (Wed, 28 Feb 2007)
New Revision: 61010

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

Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/security/GenericHeaderAuthenticator.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/security/GenericHeaderAuthenticator.java	2007-02-28 18:33:15 UTC (rev 61009)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/security/GenericHeaderAuthenticator.java	2007-02-28 18:35:46 UTC (rev 61010)
@@ -105,6 +105,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())
       {
@@ -140,6 +143,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