remm        2004/05/14 04:00:25

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteAdapter.java
  Log:
  - Major mistake: the sever cookies should be parsed after the context is mapped,
    otherwise, the session cookie is never considered valid, and it will use the last
    one.
  - Bug 28971. So we're going to have a hotfix ...
  
  Revision  Changes    Path
  1.26      +12 -1     
jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteAdapter.java
  
  Index: CoyoteAdapter.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteAdapter.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- CoyoteAdapter.java        28 Apr 2004 22:05:10 -0000      1.25
  +++ CoyoteAdapter.java        14 May 2004 11:00:25 -0000      1.26
  @@ -295,6 +295,9 @@
               return false;
           }
   
  +        // Parse session Id
  +        parseSessionCookiesId(req, request);
  +
           return true;
       }
   
  @@ -352,6 +355,14 @@
               request.setRequestedSessionId(null);
               request.setRequestedSessionURL(false);
           }
  +
  +    }
  +
  +
  +    /**
  +     * Parse session id in URL.
  +     */
  +    protected void parseSessionCookiesId(Request req, CoyoteRequest request) {
   
           // Parse session id from cookies
           Cookies serverCookies = req.getCookies();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to