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

    • Story Points:
      0.25
    • Fix Priority:
      3

      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

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            fortunato.maldonado Fortunato Maldonado
            Participants of an Issue:
            Recent user:
            Jayda Wu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

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

                Packages

                Version Package