Uploaded image for project: 'Cactus'
  1. Cactus
  2. CACTUS-37

FormAuthentication assumes "localhost" when adding cookies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.6
    • Framework
    • None
    • Operating System: All
      Platform: All
    • 17933

    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.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            jarndt196@yahoo.com Jason Arndt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: