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

Session service update fails validation sporadically

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 14.0.0
    • Fix Version/s: 14.0.0
    • Component/s: sms
    • Target Version/s:
    • Rank:
      1|hzrvnz:
    • Sprint:
      116 - "Groundhog" - Team Tesla, 117 - "Hamster" - Team Tesla

      Description

      When sending multiple continuous update requests to the session service, the validation fails sporadically. It appears to be failing when checking whether the values that are being set are valid options. The list of valid options will sometimes only be partially populated or not populated at all. This seems to be down to the cached attributes being midway through refreshing when the request is made and therefore the options are not done refreshing.

      This could potentially cause problems in a dev-ops environment where update requests will be made in a similar manner.

      In a quick test I added a ReentrantReadWriteLock on the AttributeSchemaImpl class, which seems to have solved the problem. This however needs a lot more testing.

      The attached script was used to reproduce the error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ken.stubbings Ken Stubbings
                Reporter:
                jaco.jooste Jaco Jooste
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: