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

Portlet 3.0 TCK: If actionURL or renderURL Tag is used in markup provided by a serveResource call triggered via a resource URL of type FULL/PORTLET, a JspException with the IllegalStateException is thrown

    Details

      Description

      Test failures:

      V2PortletTagLibraryTests3_SPEC2_26_IncludeJSPResource_actionURL29

      V2PortletTagLibraryTests3_SPEC2_26_IncludeJSPResource_actionURL30

      The two test cases fail because no Exception is raised while defining action tag.

      Background:

      According to PLT 26.2 actionURL Tag and 26.3 renderURL Tag,

      A JspException with the java.lang.IllegalStateException that caused this error as root cause is thrown in the following cases: If this tag is used in markup generated during resource request processing that was directly or indirectly triggered via a resource URL of type FULL or PORTLET .

      In Liferay, this logic is already implemented in method ResourceResponseImpl.createLiferayPortletURL(String portletName, String lifecycle),  however, the ActionURLTag doesn't call this method to create the URL object. This logic should be moved to the createLiferayPortletURL method that all its overloads delegate to.

        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:
                2 years, 34 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP33
                7.0.0 DXP SP7
                7.0.5 CE GA6
                Master