Details

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

      Description

      Test failure:

      V2EnvironmentTests_PortletSession_ApiRender_isNew1

      Background:

      JavaDoc of PortletSession.isNew():

      Returns true if the client does not yet know about the session orĀ if the client chooses not to join the session.

      Liferay is using Equinox.http.servlet which adds an additional layer on top of the app server. Invalidation of a session in one equinox context will not invalidate the underlying app server session since other equinox contexts may also depend on this session. In this case, equinox should keep track of HttpSession.isNew() state itself.

      On the other hand, Liferay's PortletRequestImpl doesn't correctly handle session creation with PortletRequest.getPortletSession(boolean create), which causes the PortletSessionImpl wrapping old (invalidated) equinox session will always be returned. This results in this issue and LPS-77746.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dante.wang Dante Wang
              Reporter:
              dante.wang Dante Wang
              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:
                3 years, 10 weeks ago

                  Packages

                  Version Package