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

Publishing a child page after with mismatched layoutIds causes a NoSuchLayoutException

    Details

      Description

      Steps to reproduce / testing done:
      1. Create two pages under 'Public Pages'

      • 'Test1' is the parent page
      • 'Test2' is created as a child page to 'Test1'

      2. Delete the two created pages, making two more.

      • 'Test3' is the parent page
      • 'Test4' is the created child page

      3. Enable Local Live staging under Site Settings.
      4. Under Staging, add content to the 'Test4' page.
      5. Publish page 'Test4' to Live
      6. Access page 'Test4' in Live.

      Results of steps / testing:
      User is unable to access the published page 'Test4'

      Errors/logs:
      The browser will error with the following:

      An unexpected system error occurred. 
      
      javax.servlet.jsp.JspException: com.liferay.portal.NoSuchLayoutException: No Layout exists with the key {groupId=11195, privateLayout=false, layoutId=1}

      The console:

      17:47:03,311 ERROR [http-bio-8080-exec-10][render_portlet_jsp:154] com.liferay.portal.NoSuchLayoutException: No Layout exists with the primary key 11310
              at com.liferay.portal.service.persistence.LayoutPersistenceImpl.findByPrimaryKey(LayoutPersistenceImpl.java:988)
              at com.liferay.portal.service.base.LayoutLocalServiceBaseImpl.getLayout(LayoutLocalServiceBaseImpl.java:401)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
              at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:76)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:121)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
              at com.liferay.portal.service.LayoutLocalServiceUtil.getLayout(LayoutLocalServiceUtil.java:181)
              at com.liferay.portlet.layoutsadmin.action.EditLayoutsAction.checkPermissions(EditLayoutsAction.java:396)

      Reproduced in 6.1.x - 963d412796987125672b6168c67cc8694cacead3
      Not Reproducible in Trunk, but when i was testing I was unable to get only the child page to publish. It appears that we always publish the parent pages if we are publishing a child page in trunk.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                felix.zhang Felix Zhang
                Reporter:
                andrew.betts Andrew Betts
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.1.X EE