tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets InvokerServlet.java
Date Sat, 22 Sep 2001 04:15:13 GMT
remm        01/09/21 21:15:13

  Modified:    catalina/src/share/org/apache/catalina/servlets Tag:
                        tomcat_40_branch InvokerServlet.java
  Log:
  - Fix for bug 3736. Tricky bug caused by using the invoker servlet.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.13.2.1  +11 -4     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/InvokerServlet.java
  
  Index: InvokerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/InvokerServlet.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- InvokerServlet.java	2001/08/24 23:19:06	1.13
  +++ InvokerServlet.java	2001/09/22 04:15:13	1.13.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/InvokerServlet.java,v
1.13 2001/08/24 23:19:06 craigmcc Exp $
  - * $Revision: 1.13 $
  - * $Date: 2001/08/24 23:19:06 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/InvokerServlet.java,v
1.13.2.1 2001/09/22 04:15:13 remm Exp $
  + * $Revision: 1.13.2.1 $
  + * $Date: 2001/09/22 04:15:13 $
    *
    * ====================================================================
    *
  @@ -87,7 +87,7 @@
    * in the web application deployment descriptor.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.13 $ $Date: 2001/08/24 23:19:06 $
  + * @version $Revision: 1.13.2.1 $ $Date: 2001/09/22 04:15:13 $
    */
   
   public final class InvokerServlet
  @@ -422,6 +422,13 @@
               context.removeChild(wrapper);
               throw new ServletException
                   (sm.getString("invokerServlet.allocate", inRequestURI), e);
  +        }
  +
  +        // After loading the wrapper, restore some of the fields when including
  +        if (included) {
  +            wrequest.setRequestURI(request.getRequestURI());
  +            wrequest.setPathInfo(request.getPathInfo());
  +            wrequest.setServletPath(request.getServletPath());
           }
   
           // Invoke the service() method of the allocated servlet
  
  
  

Mime
View raw message