Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-5820

Events in the JcrListener can be cleared when the UserSession is null

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.20.07, 2.22.02, 2.23.00-alpha
    • None
    • None

    Description

      The second stacktrace in CMS7-5790 revealed a case where the UserSession can be null when the event listener is called. This can happen when wicket has serialized the user session but the backing JCR Session was not yet logged out. (For the logic of the latter refer to JcrSessionReference.cleanup()). We can clear out the events in the jcr listener in this case because they will not be used anymore. When wicket revives and deserializes the user session again a new JCR session will be created.

      Attachments

        Activity

          People

            fvlankvelt Frank van Lankvelt (Inactive)
            uhommes Unico Hommes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: