Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-143510

ErrorMessage displays wrong when portlet embeds itself.

    Details

      Description

      Description

      LPS-33201 caused this. LPS-33201 added error messages displayed in UI, but it never worked. I guess LPS-33201 expected behavior didn't include this, so we missed the test.

      Steps to Reproduce

      1 Create one widget page called testPage

      2 In testPage, add Web Content Display portlet, remember its portletId, called com_liferay_journal_content_web_portlet_JournalContentPortlet_INSTANCE_4oEzRVjfCldc

      3 Navigate to Content > Web Content

      4 Create a structure called testStructure and add a text field

      5 Create a template called testTemplate, add testStructure as the structure and add the following in the script(the script used step 2 created Web Content Display portlet as embedded portlet): 

       

      <@liferay_portlet["runtime"]
       portletName = "com_liferay_journal_content_web_portlet_JournalContentPortlet_INSTANCE_4oEzRVjfCldc"
       />

      6 Create one web content with testStructure, called testArticle.

      7 Go to ** testPage, select testArticle displayed in Web Content Display portlet (Step 2 created the portlet).

       

      Expected Result

      The message "The application can not include itself." should display in UI.

      Actual Result

      The message "null" display in UI.

       

        Attachments

          Activity

            People

            Assignee:
            victor.ware Victor Ware
            Reporter:
            hai.yu Hai Yu
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Engineering Assignee:
            Hai Yu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              27 weeks, 2 days ago

                Packages

                Version Package
                7.4.3.5 CE GA5
                7.4.13 DXP U1
                7.4.3.10 CE GA10
                7.4.3.11 CE GA11
                Master