You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2003/04/05 10:18:04 UTC

cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 CoyoteRequest.java

remm        2003/04/05 00:18:04

  Modified:    coyote/src/java/org/apache/coyote/tomcat4 CoyoteRequest.java
               coyote/src/java/org/apache/coyote/tomcat5 CoyoteRequest.java
  Log:
  - Properly restore parameters when using FORM auth.
  - Submitted by Jeff Tulley <JTULLEY at novell.com>
  
  Revision  Changes    Path
  1.29      +5 -5      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- CoyoteRequest.java	24 Nov 2002 11:56:15 -0000	1.28
  +++ CoyoteRequest.java	5 Apr 2003 08:18:04 -0000	1.29
  @@ -1262,7 +1262,7 @@
        * @param values Corresponding values for this request parameter
        */
       public void addParameter(String name, String values[]) {
  -        // Not used
  +        coyoteRequest.getParameters().addParameterValues(name, values);
       }
   
   
  
  
  
  1.23      +8 -6      jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteRequest.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- CoyoteRequest.java	25 Mar 2003 17:48:42 -0000	1.22
  +++ CoyoteRequest.java	5 Apr 2003 08:18:04 -0000	1.23
  @@ -538,7 +538,9 @@
        * Return the Host within which this Request is being processed.
        */
       public Host getHost() {
  -        return (Host)getContext().getParent();
  +        if (getContext() == null)
  +            return null;
  +        return (Host) getContext().getParent();
           //return ((Host) mappingData.host);
       }
   
  @@ -1521,7 +1523,7 @@
        * @param values Corresponding values for this request parameter
        */
       public void addParameter(String name, String values[]) {
  -        // Not used
  +        coyoteRequest.getParameters().addParameterValues(name, values);
       }
   
   
  
  
  

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