Uploaded image for project: 'Rights API'
  1. Rights API
  2. RIGHTSAPI-36

Security cache should be invalidated before a RightUpdatedEvent is triggered

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.1
    • 2.0
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Currently the security cache is invalidated in XWiki Standard through a listener on document events. The problem is that we don't have ordering of the listener events, so it's possible that the RightUpdatedEvent is triggered before the cache is invalidated.
      Consumer of the RightUpdatedEvent should be able to assume that the cache has been invalidated when they listen on RightUpdatedEvent, so for that reason we should invalidate the cache right away before triggering the RightUpdatedEvent.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: