tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core ContextManager.java
Date Mon, 28 Aug 2000 23:30:08 GMT
nacho       00/08/28 16:30:08

  Modified:    src/share/org/apache/tomcat/core ContextManager.java
  Log:
  In case of bad request there is no context mapped to request so
  only global interceptors are called.
  
  Revision  Changes    Path
  1.125     +5 -0      jakarta-tomcat/src/share/org/apache/tomcat/core/ContextManager.java
  
  Index: ContextManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/ContextManager.java,v
  retrieving revision 1.124
  retrieving revision 1.125
  diff -u -r1.124 -r1.125
  --- ContextManager.java	2000/08/28 03:14:01	1.124
  +++ ContextManager.java	2000/08/28 23:30:07	1.125
  @@ -611,6 +611,11 @@
       }
   
       public ContextInterceptor[] getContextInterceptors(Container ct) {
  +        Context ctx=req.getContext();
  +        // if Bad request (ctx == null) only global interceptors are called
  +        if( ctx == null )
  +           return getRequestInterceptors();
  +        Container ct=ctx.getContainer();
           ContextInterceptor[] aci=ct.getCachedContextInterceptors();
           if (aci.length == 0){
               ContextInterceptor[] cci=ct.getContextInterceptors();
  
  
  

Mime
View raw message