Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-74114 Make Liferay compatible with version 2.0 tests in the Portlet 3.0 TCK
  3. LPS-77746

Unable to get a new PortletSession via PortletRequest.getPortletSession(true) after calling PortletSession.invalidate()

    Details

    • Type: Technical Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.1.2 CE GA3
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Problem Description

      This bug was discovered by the following tests in the Portlet 3.0 TCK:

      • V3HeaderPortletTests_SPEC14_PortletRequest_ApiHeader_getPortletSessionB2
      • V3HeaderPortletTests_SPEC14_PortletRequest_ApiHeader_getPortletSessionA2
      • V3HeaderPortletTests_SPEC14_PortletRequest_ApiHeader_isRequestedSessionIdValid1

      Although this test generally targets Portlet 3.0 features, it happens to exercise Portlet 2.0 features like calling PortletSession.invalidate() followed by PortletRequest.getPortletSession(true). The problem is that the return value is the previously invalidated instance, rather than a new valid one.

      Steps to Reproduce

      1. Download and deploy the attached com.liferay.issue.lps77746.portlet.war artifact

      2. Add com.liferay.issue.lps77746.portlet to a portal page

      3. Reload the page

      Expected Results

      The com.liferay.issue.lps77746.portlet indicates "PortletSession is valid"

      Actual Results

      The com.liferay.issue.lps77746.portlet indicates "PortletSession is invalid"

      Regression

      This is a regression since 7.0.6-ga7.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dante.wang Dante Wang
              Reporter:
              neil.griffin Neil Griffin
              Recent user:
              Dante Wang
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Days since last comment:
                2 years, 39 weeks, 1 day ago

                  Packages

                  Version Package