Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-14958

Session is not refreshed correctly respecting Latest Access Time Update Frequency settings

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.5.2, 7.0.0
    • Fix Version/s: None
    • Component/s: session
    • Labels:
      None

      Description

      Bug description

      Session refreshed by /json/sessions?_action=getSessionInfo is not respecting Latest Access Time Update Frequency setting.

      How to reproduce the issue

      1. Configure -> Global Services -> General -> Latest Access Time Update Frequency -> change from 60 seconds to 1 second
      2. wait 10 seconds
      3. call /json/sessions?_action=getSessionInfo
      4. wait 10 seconds
      5. call /json/sessions?_action=getSessionInfo
      6. wait 10 seconds
      7. call /json/sessions?_action=getSessionInfo
      Expected behaviour
      Output is always different after each getSessionInfo
      
      Current behaviour
      Output is same in step 5. and step 7. It is different from step 3:
      
      Út kvě 21 07:07:32 CEST 2019  logging in
      Út kvě 21 07:07:33 CEST 2019  user: 2jKSiWTeJcqLFiv49mYYmv2PTns.*AAJTSQACMDEAAlNLABxpTjZ5VFJmdWFFajMrVmd5T2thMzU1MDc2VzA9AAR0eXBlAANDVFMAAlMxAAA.*
      Út kvě 21 07:07:33 CEST 2019  sleep 10
      Út kvě 21 07:07:43 CEST 2019  refresh token
      {
          "latestAccessTime": "2019-05-21T05:07:33Z", 
          "maxIdleExpirationTime": "2019-05-21T05:37:33Z", 
          "maxSessionExpirationTime": "2019-05-21T07:07:32Z", 
          "properties": {
              "AMCtxId": "fb7286a8-cf65-43fa-93cf-6cc6eb9ecb4f-12502"
          }, 
          "realm": "/", 
          "universalId": "id=demo,ou=user,dc=openam,dc=forgerock,dc=org", 
          "username": "demo"
      }
      Út kvě 21 07:07:47 CEST 2019  sleep 10
      Út kvě 21 07:07:57 CEST 2019  refresh token
      {
          "latestAccessTime": "2019-05-21T05:07:47Z", 
          "maxIdleExpirationTime": "2019-05-21T05:37:47Z", 
          "maxSessionExpirationTime": "2019-05-21T07:07:32Z", 
          "properties": {
              "AMCtxId": "fb7286a8-cf65-43fa-93cf-6cc6eb9ecb4f-12502"
          }, 
          "realm": "/", 
          "universalId": "id=demo,ou=user,dc=openam,dc=forgerock,dc=org", 
          "username": "demo"
      }
      Út kvě 21 07:07:58 CEST 2019  sleep 10
      Út kvě 21 07:08:08 CEST 2019  refresh token
      {
          "latestAccessTime": "2019-05-21T05:07:47Z", 
          "maxIdleExpirationTime": "2019-05-21T05:37:47Z", 
          "maxSessionExpirationTime": "2019-05-21T07:07:32Z", 
          "properties": {
              "AMCtxId": "fb7286a8-cf65-43fa-93cf-6cc6eb9ecb4f-12502"
          }, 
          "realm": "/", 
          "universalId": "id=demo,ou=user,dc=openam,dc=forgerock,dc=org", 
          "username": "demo"
      }
      

      Bash script to test - session_idle_test.sh

      Also it is interesting that when you run script second time, every value is same - I suppose it works well only first time after "Latest Access Time Update Frequency" settings change

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lubomir.mlich Ľubomír Mlích
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: