Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-1177

Fetch attributes cookies are cleared on every next request for C agent 5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.0.0.0
    • Fix Version/s: None
    • Component/s: Web Agents
    • Labels:
    • Environment:
      OpenAM Web Agent for Apache Server 2.4.x 64bit
       Version: 5.0.0-M3
       Revision: 5bad925
       Build machine:
       Build date: Oct 16 2017 10:11:00

      Description

      Fetch attributes cookies are cleared on every next request for C agent 5

      Steps to reproduce

      1.) Create a policies to allow access

      2.) Set Fetch attributes: Agent Profile / Applications:

      • Profile Attribute Fetch Mode = HTTP_COOKIE
      • Profile Attribute Map = [cn] = MY-COOKIE

      3.) Observe the http requests
      4.) Hit the index.html page and login with demo user
      5.) Check the cookies

      Expected

      Cookie MY-COOKIE=demo is presented in the browser

      Observed

      Cookie MY-COOKIE=demo is not presented in the browser. I can see that cookie is created on index.html page:

      GET http://riso-ubuntu16.test.forgerock.com/index.html
      
      Set-Cookie: HTTP_MY-COOKIE=;Max-Age=0;Expires=Thu, 01-Jan-1970 00:00:01 GMT;Path=/
      Set-Cookie: HTTP_MY-COOKIE=demo;Max-Age=300;Expires=Tue, 17-Oct-2017 17:09:04 GMT;Path=/
      

      but after that browser ask for favicon.ico and the cookie is cleared on this and on every next request

      Set-Cookie: HTTP_MY-COOKIE=;Max-Age=0;Expires=Thu, 01-Jan-1970 00:00:01 GMT;Path=/
      

      This is different behavior compare to C Agent 4.1.0 where the cookie is cleared and created on every request.

        Attachments

          Activity

            People

            Assignee:
            nick.james Nicholas James
            Reporter:
            richard.hruza Richard Hruza
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: