Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-70222

On shutdown, listeners are unregistered in the same order they had been added regardless if they are SessionListeners or ServletContextListeners

    Details

      Description

      Servlet 3 spec, section 11.3.4, states:

      On application shutdown, listeners are notified in reverse order to their declarations with notifications to session listeners preceding notifications to context listeners. Session listeners must be notified of session invalidations prior to context listeners being notified of application shutdown.

      In Liferay 7 unregistering order doesn't take this into account, so there is a chance for session listeners to be executed after servlet context listeners.

      This issue needs LPS-69940 in order to be reproduceable.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 39 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP12
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master