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-77743

After PortletSession.invalidate() is called PortletRequest.getPortletSession(false) does not return null

    Details

    • Type: Technical Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Component/s: None
    • Labels:
      None

      Description

      Problem Background:

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

      • V3HeaderPortletTests_SPEC14_PortletRequest_ApiHeader_getPortletSessionB2
      • V3HeaderPortletTests_SPEC14_PortletRequest_ApiHeader_getPortletSessionB4

      Although these are tests that generally target Portlet 3.0 features, these tests happen to exercise Portlet 2.0 features like calling PortletSession.invalidate() followed by PortletRequest.getPortletSession(false). The problem is that the return value should be null but it is non-null.

      Steps to Reproduce:

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

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

      3. Reload the page

      Expected Results

      The com.liferay.issue.lps77743.portlet indicates "PortletSession is null"

      Actual Results

      The com.liferay.issue.lps77743.portlet indicates "PortletSession is NOT null"

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            neil.griffin Neil Griffin
            Recent user:
            Brian Chan
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 15 weeks ago

                Packages

                Version Package
                Master