tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup ContextConfig.java
Date Wed, 18 Oct 2000 01:56:47 GMT
craigmcc    00/10/17 18:56:47

  Modified:    catalina/src/share/org/apache/catalina/startup
                        ContextConfig.java
  Log:
  If a web application specifies security constraints, but does not include
  a Realm to authenticate users against, log an error message at startup time
  and disable this webapp.
  
  Revision  Changes    Path
  1.26      +11 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/ContextConfig.java
  
  Index: ContextConfig.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/ContextConfig.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- ContextConfig.java	2000/10/14 05:21:13	1.25
  +++ ContextConfig.java	2000/10/18 01:56:46	1.26
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/ContextConfig.java,v
1.25 2000/10/14 05:21:13 craigmcc Exp $
  - * $Revision: 1.25 $
  - * $Date: 2000/10/14 05:21:13 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/ContextConfig.java,v
1.26 2000/10/18 01:56:46 craigmcc Exp $
  + * $Revision: 1.26 $
  + * $Date: 2000/10/18 01:56:46 $
    *
    * ====================================================================
    *
  @@ -117,7 +117,7 @@
    * of that Context, and the associated defined servlets.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.25 $ $Date: 2000/10/14 05:21:13 $
  + * @version $Revision: 1.26 $ $Date: 2000/10/18 01:56:46 $
    */
   
   public final class ContextConfig
  @@ -295,6 +295,13 @@
   	} else {
   	    return;	// Cannot install a Valve even if it would be needed
   	}
  +
  +        // Has a Realm been configured for us to authenticate against?
  +        if (context.getRealm() == null) {
  +            log(sm.getString("contextConfig.missingRealm"));
  +            ok = false;
  +            return;
  +        }
   
   	// Load our mapping properties if necessary
   	if (authenticators == null) {
  
  
  

Mime
View raw message