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

When every page is hidden bottom_js.jspf breaks

    Details

      Description

      Once LPS-15921 has landed is now possible to make hidden every layout in a layoutSet.

      This leads to a layouts==null and bottom_js.jspf tries to iterate over it.

      The iteration can be found on https://github.com/liferay/liferay-portal/blob/master/portal-web/docroot/html/common/themes/bottom_js.jspf#L127.

      Incriminated code is here: https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/events/ServicePreAction.java#L1654

      As you'll see if viewableLayouts.isEmpty() then yelds to null. This value is not always sanitized to an empty ArrayList<Layout> as we might expect.

        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:
                  7 years, 22 weeks, 5 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.2 CE GA3
                  6.1.30 EE GA3
                  6.2.0 CE M2