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

Session is unavailable for portlets' HttpSessionListener.sessionDestroyed method in some cases

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.0.0 DXP SP1, Master
    • Fix Version/s: Master
    • Component/s: Core Infrastructure
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Unzip attached portlet project into a local Liferay SDK
      2. Compile project within SDK (ant clean war).
      3. Startup Liferay 7
      4. Log in
      5. Deploy portlet built previously
      6. Add portlet to a page and access that page. You should see a message in logs saying "Created session".
      7. Go to SDK portlet folder and generate it again (ant clean war).
      8. Deploy portlet again.
      9. Refresh page where portlet was deployed.
      10. Log out.

      Expected behavior: You should see messages like these in server log:

      Listing session attribute names
      Created session
      Listing session attribute names
      

      Actual behavior: session is unvailable in HttpSessionListener, and it creates logs like this:

      Created session
      IllegalStateException thrown. This should not happen
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 26 weeks, 1 day ago

                Packages

                Version Package
                Master