You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by ji...@apache.org on 2004/04/17 17:49:31 UTC

[jira] Updated: (CACTUS-37) FormAuthentication assumes "localhost" when adding cookies

The following issue has been updated:

    Updater: Vincent Massol (mailto:vmassol@apache.org)
       Date: Sat, 17 Apr 2004 8:48 AM
    Changes:
             assignee changed from Cactus Developers Mailing List to Vincent Massol
             description changed from When the FormAuthentication's authenticate method adds the session id cookie 
to the session, it uses the BaseWebRequest addCookie(theName, theValue) 
method, which calls the addCookie(theDomain, theName, theValue) method, but 
uses "localhost" as theDomain.  This makes all tests required to run with the 
cactus.contextURL property as "http://localhost" in order to work.  However, 
that is not always the case, so the cookie fails to be added to the session.  

The call to addCookie that FormAuthentication makes needs to use the addCookie
(theDomain, theName, theValue) method and supply the Domain obtained from the 
cactus.contextURL property. to When the FormAuthentication's authenticate method adds the session id cookie 
to the session, it uses the BaseWebRequest addCookie(theName, theValue) 
method, which calls the addCookie(theDomain, theName, theValue) method, but 
uses "localhost" as theDomain.  This makes all tests required to run with the 
cactus.contextURL property as "http://localhost" in order to work.  However, 
that is not always the case, so the cookie fails to be added to the session.  

The call to addCookie that FormAuthentication makes needs to use the addCookie
(theDomain, theName, theValue) method and supply the Domain obtained from the 
cactus.contextURL property.
             environment changed from Operating System: All
Platform: All to Operating System: All
Platform: All
             priority changed to Major
             Fix Version changed to 1.6
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/CACTUS-37?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/CACTUS-37

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CACTUS-37
    Summary: FormAuthentication assumes "localhost" when adding cookies
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: FIXED

    Project: Cactus
 Components: 
             Framework
   Fix Fors:
             1.6

   Assignee: Vincent Massol
   Reporter: Jason Arndt

    Created: Wed, 12 Mar 2003 8:49 PM
    Updated: Sat, 17 Apr 2004 8:48 AM
Environment: Operating System: All
Platform: All

Description:
When the FormAuthentication's authenticate method adds the session id cookie 
to the session, it uses the BaseWebRequest addCookie(theName, theValue) 
method, which calls the addCookie(theDomain, theName, theValue) method, but 
uses "localhost" as theDomain.  This makes all tests required to run with the 
cactus.contextURL property as "http://localhost" in order to work.  However, 
that is not always the case, so the cookie fails to be added to the session.  

The call to addCookie that FormAuthentication makes needs to use the addCookie
(theDomain, theName, theValue) method and supply the Domain obtained from the 
cactus.contextURL property.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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