Issue Details (XML | Word | Printable)

Key: CACTUS-37
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vincent Massol
Reporter: Jason Arndt
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Cactus

FormAuthentication assumes "localhost" when adding cookies

Created: 13/Mar/03 04:49 AM   Updated: 17/Apr/04 03:48 PM
Return to search
Component/s: Framework
Affects Version/s: None
Fix Version/s: 1.6

Time Tracking:
Not Specified

Environment:
Operating System: All
Platform: All

Bugzilla Id: 17933


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Christopher Lenz added a comment - 14/Jul/03 04:46 AM
This is a limitation of the FormAuthentication class that will be addressed
after Cactus 1.5.

Vincent Massol added a comment - 15/Jul/03 12:41 PM
Reopening after 1.5-beta1 release

Vincent Massol added a comment - 27/Feb/04 05:11 PM
Fixed by Kazuhito Suguri. Applied his patch today in CVS HEAD. Please reopen
if you still have a problem. Thanks.