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

NoSuchLayoutException when a page created from site template no longer exists in site template.

    Details

      Description

      Issue: When a page in a site template is deleted from a site but is still referenced in a site in an unlinked(not propagated) state, Liferay believes the page is still linked and attempts to view the the page in manage pages causes an NoSuchLayoutException to be thrown.

      Steps to reproduce

      1)Create a site template with a few pages
      2)Create a site based on that site template
      3)Unlink the site by un-checking the Enable propagation of changes from the site template <template> checkbox in the Site Settings detail tab
      4)Delete a page in the site template
      5)Navigate to the Site Pages section in control panel for the site you created
      6)Verify that an NoSuchLayoutException is thrown

      21:18:34,368 ERROR [http-bio-8080-exec-4][IncludeTag:253] Current URL /group/control_panel/manage?p_p_id=156&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10710&refererPlid=10183 generates exception: com.liferay.portal.NoSuchLayoutException: No Layout exists with the key {uuid=9ba66c
      f5-e5f3-4348-817a-398a58c43e57, groupId=10339, privateLayout=true}
      21:18:34,372 ERROR [http-bio-8080-exec-4][IncludeTag:157] com.liferay.portal.NoSuchLayoutException: No Layout exists with the key {uuid=9ba66cf5-e5f3-4348-817a-398a58c43e57, groupId=10339, privateLayout=true}
              at com.liferay.portal.service.persistence.LayoutPersistenceImpl.findByUUID_G_P(LayoutPersistenceImpl.java:1571)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
              at com.liferay.portal.service.base.LayoutLocalServiceBaseImpl.getLayoutByUuidAndGroupId(LayoutLocalServiceBaseImpl.java:421)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:117)
              at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:60)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:134)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yunlin.sun Yunlin "Steven" Sun
              Reporter:
              kevin.ofarrell Kevin Ofarrell (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 41 weeks ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.1 CE GA2
                  6.2.X EE