tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/generators ErrorHandler.java
Date Wed, 06 Mar 2002 03:50:50 GMT
billbarker    02/03/05 19:50:50

  Modified:    src/share/org/apache/tomcat/modules/generators
                        ErrorHandler.java
  Log:
  Cleanup the logic to find an error handler.
  
  The old code wasn't setting the "server" on the request, so that everything was trying the
DEFAULT virtual host.  Now everything gets set correctly to map the request.
  
  Fix for bug #6887
  Reported By: Mike mike@ds808.net
  
  Revision  Changes    Path
  1.25      +1 -4      jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java
  
  Index: ErrorHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- ErrorHandler.java	5 Feb 2002 01:22:43 -0000	1.24
  +++ ErrorHandler.java	6 Mar 2002 03:50:50 -0000	1.25
  @@ -430,11 +430,8 @@
   	if( ! path.startsWith( "/" ) ) {
   	    return ctx.getServletByName( path );
   	}
  -	Request req1=cm.createRequest();
  -	Response res1=cm.createResponse(req1);
  -	cm.initRequest( req1, res1 );
  +	Request req1=cm.createRequest(ctx, path);
   
  -	req1.requestURI().setString( ctx.getPath() + path );
   	cm.processRequest( req1 );
   	return req1.getHandler();
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message