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

delete site page while staging with page versioning crashes Site Pages

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.1.30 EE GA3, 6.2.0 CE M2
    • Fix Version/s: 6.2.0 CE M3
    • Component/s: Staging
    • Labels:
      None
    • Environment:
      Tomcat 7.0 + MySQL 5. 6.1.x CE GIT ID: 3c31bd74260db32c626f99af19eef4ad956e754f.
      Tomcat 7.0 + MySQL 5. 6.1.x EE GIT ID: 351ed96fa6bb241f0f96f178b022d3b42ffd9fa3.
      Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: 41e48149c61bea15b945e3704a5c8b69db507722.

      Description

      1. Create Site A
      2. Control Panel > select Site A
      3. Site Settings > Enable Local Staging with page versioning
      4. Site Pages > Add Page A
      5. Delete Page A from the page tree

      Site Pages becomes temporarily unavailable and generates a nosuchlayoutexception in console. This issue also occurs through the Manage Site Pages of the site view, but if the page was added and deleted in the horizontal bar, there will be no error.

      ERROR [render_portlet_jsp:154] com.liferay.portal.NoSuchLayoutException: No Layout exists with the primary key 10471
              at com.liferay.portal.service.persistence.LayoutPersistenceImpl.findByPrimaryKey(LayoutPersistenceImpl.java:937)
              at com.liferay.portal.service.base.LayoutLocalServiceBaseImpl.getLayout(LayoutLocalServiceBaseImpl.java:398)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
              at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:74)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:102)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
              at com.liferay.portal.service.LayoutLocalServiceUtil.getLayout(LayoutLocalServiceUtil.java:182)
              at com.liferay.portlet.layoutsadmin.action.EditLayoutsAction.checkPermissions(EditLayoutsAction.java:385)
              at com.liferay.portlet.layoutsadmin.action.EditLayoutsAction.render(EditLayoutsAction.java:300)
              at com.liferay.portal.struts.PortletAction.execute(PortletAction.java:111)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
              at com.liferay.portal.struts.PortletRequestProcessor.processActionPerform(PortletRequestProcessor.java:441)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
              at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:224)
              at com.liferay.portlet.StrutsPortlet.include(StrutsPortlet.java:237)
              at com.liferay.portlet.StrutsPortlet.doView(StrutsPortlet.java:152)
      

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

                  Subcomponents