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

Scheduled remote live publication fails if a page is deleted

    Details

      Description

      Scheduled publications when using remote live staging will fail if a page that is scheduled to be published is deleted prior to the publication.

      Steps to reproduce:

      1. Set tunneling.servlet.shared.secret= to a value to allow remote live staging
      2. Start Liferay and create a Staging site and live site
      3. Set up remote Staging between the two sites
      4. On the Staging site, create a few pages
      5. Create a new Staging publication, making sure that all pages are checked, and then schedule it to occur later (at least a couple minutes out to give time for the next step)
      6. Delete one of the pages before the scheduled publication is triggered
      7. Wait for the publication to occur
        Expected result: Publication is successful
        Actual result: The publication fails and the following stacktrace is thrown:
        2018-06-25 17:15:00.052 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:166] Unable to execute background task
        com.liferay.portal.kernel.exception.NoSuchLayoutException: No Layout exists with the primary key 37623
                at com.liferay.portal.service.persistence.impl.LayoutPersistenceImpl.findByPrimaryKey(LayoutPersistenceImpl.java:11207)
                at com.liferay.portal.service.persistence.impl.LayoutPersistenceImpl.findByPrimaryKey(LayoutPersistenceImpl.java:11223)
                at com.liferay.portal.service.impl.LayoutLocalServiceImpl.getLayout(LayoutLocalServiceImpl.java:1156)
                at sun.reflect.GeneratedMethodAccessor475.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163)
                at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:138)
                at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
                at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
                at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
                at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
                at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
                at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137)
                at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169)
                at com.sun.proxy.$Proxy101.getLayout(Unknown Source)
                at com.liferay.exportimport.lar.ExportImportHelperImpl.getLayoutOrCreateDummyRootLayout(ExportImportHelperImpl.java:538)
                at com.liferay.exportimport.kernel.lar.ExportImportHelperUtil.getLayoutOrCreateDummyRootLayout(ExportImportHelperUtil.java:247)
                at com.liferay.exportimport.background.task.LayoutRemoteStagingBackgroundTaskExecutor.exportLayoutsAsFile(LayoutRemoteStagingBackgroundTaskExecutor.java:213)
                at com.liferay.exportimport.background.task.LayoutRemoteStagingBackgroundTaskExecutor.execute(LayoutRemoteStagingBackgroundTaskExecutor.java:128)
                at com.liferay.portal.kernel.backgroundtask.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:54)
                at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43)
                at com.liferay.portal.kernel.backgroundtask.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:56)
                at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:125)
                at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
                at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
                at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
                at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
                at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
                at java.lang.Thread.run(Thread.java:748)

      Reproduced in master: 7f0b85f23ce6481ac84ac5bea6ff01cfe2091f94
      Reproduced in 7.0.x: 38818883824acfc6ca117e09befb55fc1324f838

        Attachments

          Activity

            People

            • Assignee:
              lu.liu Lu Liu
              Reporter:
              alec.shay Alec Shay
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 22 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP55
                7.0.0 DXP SP9
                7.0.X
                7.1.X
                Master