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

Liferay does not fire allPortletsReady event for non-admin users if admin user accesses product menu portlet

    Details

      Description

      Steps to Reproduce

      1. Sign in as an administrator user
      2. Navigate to http://localhost:8080/web/guest/home
      3. Expand the product menu, and click on Liferay > Navigation > Public Pages, click on the "..." next to Welcome, and choose "Configure Page"
      4. Select the advanced tab and paste in the following into the Javascript section:
        Liferay.on('allPortletsReady', function(x) { alert('Event fired!'); });
        
      5. After saving, note that you get an alert saying "Event fired!"
      6. Navigate to http://localhost:8080/web/guest/home
      7. Note that after navigating, you get an alert saying "Event fired!"
      8. Sign out.

      Expected behavior is that the 'allPortletsReady' event will continue to fire. Actual behavior is that the event stops firing after you've signed out.

      In this case, it appears as though the problem is that the administrator user visiting the page caused the Product Menu Portlet to become an embedded portlet on the page and is added to Liferay.Portlet.list.

      As a result, the 'allPortletsReady' event will not fire for guest users visiting the page.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 36 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP28
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master