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

Intermittent error message when concurrent obtain SSO Token ID with session quota constraints

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.5.2, 6.5.2.1
    • Fix Version/s: 5.5.3, 6.0.1, 7.0.0, 6.5.3
    • Component/s: session
    • Labels:
    • Sprint:
      AM Sustaining Sprint 73, AM Sustaining Sprint 74
    • Story Points:
      5
    • Support Ticket IDs:
    • Verified Version/s:
    • Needs QA verification:
      Yes
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description, Yes but I used my own steps. (If so, please add them in a new comment)

      Description

      Bug description

      When session quota constraints is enabled, concurrent obtaining the SSO Token ID with same user would sometimes return error message of "You have reached your session limit".

      How to reproduce the issue

      1. Configure Session (Configure > Global Services > Session > Session Quotas)
        Enable Quota Constraints: ON
        Read Timeout for Quota Constraint: 6000
        Resulting behaviour if session quota exhausted : Destroy Next Expiring

      Note: same result when setting to Destroy Oldest

      1. Create script on execute multiple curl command to obtain user (in this case, demo user) SSO Token ID (refer to test.sh script)
      2. Concurrently execute the script
      $ parallel ::: ./test.sh ./test.sh > output.txt
      
      1. View output.txt
      Expected behaviour
      Always obtaining SSO Token ID
      
      Current behaviour
      {"code":401,"reason":"Unauthorized","message":"You have reached your session limit."}
      

        Attachments

        1. output.txt
          31 kB
        2. test.sh
          0.3 kB

          Issue Links

            Activity

              People

              • Assignee:
                lawrence.yarham Lawrence Yarham
                Reporter:
                wanning.tan WanNing Tan
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: