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

Portlet 3.0 TCK: PortletContext.getPortletContextName() should return the name as specified in web.xml <display-name> element.

    Details

      Description

      Test failures:

      Two test cases fail:

      • V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName1
      • V2EnvironmentTests_PortletContext_ApiRender_getPortletContextName2

      Background:

      JavaDoc of PortletContext.getPortletContextName()

      Returns the name of this portlet application correponding to this PortletContext as specified in the <code>web.xml</code> deployment descriptor for this web application by the display-name element.

      The issues are caused by two reasons:

      1. During deployment of the war, the display-name element value in web.xml will be modified by Liferay. Pluto use hard-coded value as expected value. This will be fixed with PLUTO-675.
      2. In our case as deploying the war as a WAB, Liferay writes "/war-file-name" as display-name value, but the actual context name is "war-file-name" without the leading slash.

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              dante.wang Dante Wang
              Recent user:
              Csaba Turcsan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 35 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP37
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                Master