DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17933>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17933

FormAuthentication assumes "localhost" when adding cookies

           Summary: FormAuthentication assumes "localhost" when adding
                    cookies
           Product: Cactus
           Version: Nightly Build
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to