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

NPE when accessing a page that has a layouttpl not deployed

    Details

      Description

      When accessing a page that is defined with a layout template that isn't deployed, Liferay just send a NPE with poor information about it.

      Perhaps it should send a clear message about the fact that the layout template isn't deployed or maybe just make a fallback to a default layouttpl.

      Steps to reproduce:

      With a clean tomcat bundle, do:

      1) deploy a layouttpl
      2) create a page with that layouttpl
      3) stop liferay
      4) undeploy the layouttpl
      5) start liferay
      6) try to access the newly created page

      Expected behavior:
      Liferay falls back to a default layout template or send a clear message showing that the layouttpl is missing

      Actual behavior:
      Liferay sends a unavailability error to user and raise an NPE exception in the logs.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                antonio.junior Antonio Junior (Inactive)
                Reporter:
                ricardo.funke Ricardo Funke (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 45 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M4