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

StackOverflow Error when Embedding Asset Publisher with randomNamespace as instanceId

    Details

      Description

      When embedding an Asset Publisher with randomNamespace as instanceId in a web content, a StackOverflow error appears in the console.

      Steps to Reproduce
      1. Navigate to Content > Web Content
      2. Create a structure called "test" and add a text field
      3. Create a template called "testing", add "test" as the structure and add the following in the script:

      <@liferay_portlet["runtime"]
              instanceId = randomNamespace
              portletName = "com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet"
              portletProviderAction=portletProviderAction.VIEW
          />
      

      4. Create a Web Content using "test" structure, add a title and some text and then publish it.
      5. Go to the main page and click the + to add content to page and notice errors in console.
      Note: The console errors may appear after the user saves the web content, returns to the main page or the user will need to add the content to the page.

      Expected Result
      No console errors appears.

      Actual Result
      StackOverflow exceptions appear in the console. In portletpreferences in the database, the portletId column will display multiple ids related to the asset publisher instance.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jayda.wu Jayda Wu
              Reporter:
              fortunato.maldonado Fortunato Maldonado
              Participants of an Issue:
              Recent user:
              Rafaela Nascimento
              Engineering Assignee:
              Hai Yu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                31 weeks, 6 days ago

                  Packages

                  Version Package
                  7.4.3.5 CE GA5
                  7.4.13 DXP U1
                  7.4.3.6 CE GA6
                  7.4.13 DXP U2
                  Master