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

Fail to publish the publication with deletion folder when the document deleted on production

    Details

      Description

      Steps to reproduce

      1. Enable Publications
      2. Add a new DM folder
      3. Add a new document within the DM folder
      4. Add a new publication "P1"
      5. Delete the new folder
      6. Add a new publication "P2"
      7. Delete the new document
      8. Publish "P2"
      9. Select "P1"
      10. Go to publish "P1"

      Actual Result:
      There are no conflicts, fail to publish "P1" and following errors throw

      2021-09-06 02:49:42.077 ERROR [liferay/background_task-5][CTServiceRegistry:134] On after publish callback failure for change tracking collection 1 by co[email protected]580b5595
      com.liferay.change.tracking.spi.exception.CTEventException: com.liferay.change.tracking.store.exception.NoSuchContentException: No CTSContent exists with the primary key 42155
      	at com.liferay.change.tracking.store.internal.CTStoreCTEventListener.onAfterPublish(CTStoreCTEventListener.java:95) ~[?:?]
      	at com.liferay.change.tracking.internal.CTServiceRegistry.onAfterPublish(CTServiceRegistry.java:131) [bundleFile:?]
      	at com.liferay.change.tracking.internal.background.task.CTPublishBackgroundTaskExecutor.execute(CTPublishBackgroundTaskExecutor.java:189) [bundleFile:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) [portal-impl.jar:?]
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69) [portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) [portal-impl.jar:?]
      	at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:80) [bundleFile:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) [portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) [portal-impl.jar:?]
      	at com.sun.proxy.$Proxy664.execute(Unknown Source) [?:?]
      	at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:63) [bundleFile:?]
      	at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:41) [portal-kernel.jar:?]
      	at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:72) [bundleFile:?]
      	at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:136) [bundleFile:?]
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:48) [portal-kernel.jar:?]
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34) [portal-kernel.jar:?]
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) [portal-kernel.jar:?]
      	at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56) [bundleFile:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_291]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_291]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_291]
      Caused by: com.liferay.change.tracking.store.exception.NoSuchContentException: No CTSContent exists with the primary key 42155
      	at com.liferay.change.tracking.store.service.persistence.impl.CTSContentPersistenceImpl.findByPrimaryKey(CTSContentPersistenceImpl.java:2875) ~[?:?]
      	at com.liferay.change.tracking.store.service.persistence.impl.CTSContentPersistenceImpl.findByPrimaryKey(CTSContentPersistenceImpl.java:2893) ~[?:?]
      	at com.liferay.change.tracking.store.service.base.CTSContentLocalServiceBaseImpl.getCTSContent(CTSContentLocalServiceBaseImpl.java:269) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) ~[portal-impl.jar:?]
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69) ~[portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) ~[portal-impl.jar:?]
      	at com.sun.proxy.$Proxy708.getCTSContent(Unknown Source) ~[?:?]
      	at com.liferay.change.tracking.store.internal.CTStoreCTEventListener.onAfterPublish(CTStoreCTEventListener.java:83) ~[?:?]
      	... 24 more
      2021-09-06 02:52:11.593 ERROR [liferay/background_task-8][BackgroundTaskMessageListener:182] Unable to execute background task
      com.liferay.portal.kernel.exception.SystemException: Size mismatch expected 6 but was 3
      	at com.liferay.change.tracking.internal.background.task.CTServicePublisher._publish(CTServicePublisher.java:165) ~[?:?]
      	at com.liferay.portal.service.base.ResourcePermissionLocalServiceBaseImpl.updateWithUnsafeFunction(ResourcePermissionLocalServiceBaseImpl.java:628) ~[portal-impl.jar:?]
      	at sun.reflect.GeneratedMethodAccessor646.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66) ~[portal-kernel.jar:?]
      	at com.sun.proxy.$Proxy863.updateWithUnsafeFunction(Unknown Source) ~[?:?]
      	at com.liferay.portal.kernel.service.ResourcePermissionLocalServiceWrapper.updateWithUnsafeFunction(ResourcePermissionLocalServiceWrapper.java:1183) ~[portal-kernel.jar:?]
      	at sun.reflect.GeneratedMethodAccessor646.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
      	at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66) ~[portal-kernel.jar:?]
      	at com.sun.proxy.$Proxy864.updateWithUnsafeFunction(Unknown Source) ~[?:?]
      	at sun.reflect.GeneratedMethodAccessor646.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) ~[portal-impl.jar:?]
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69) ~[portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) ~[portal-impl.jar:?]
      	at com.sun.proxy.$Proxy47.updateWithUnsafeFunction(Unknown Source) ~[?:?]
      	at com.liferay.change.tracking.internal.background.task.CTServicePublisher.publish(CTServicePublisher.java:86) ~[?:?]
      	at com.liferay.change.tracking.internal.background.task.CTPublishBackgroundTaskExecutor.execute(CTPublishBackgroundTaskExecutor.java:169) ~[?:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_291]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_291]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) ~[portal-impl.jar:?]
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69) ~[portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?]
      	at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:80) ~[?:?]
      	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?]
      	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) ~[portal-impl.jar:?]
      	at com.sun.proxy.$Proxy664.execute(Unknown Source) ~[?:?]
      	at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:63) ~[?:?]
      	at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:41) ~[portal-kernel.jar:?]
      	at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:72) ~[bundleFile:?]
      	at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:136) [bundleFile:?]
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.doReceive(BaseMessageListener.java:48) [portal-kernel.jar:?]
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:34) [portal-kernel.jar:?]
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) [portal-kernel.jar:?]
      	at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56) [bundleFile:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_291]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_291]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_291]
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            linda.sui Linda Sui
            Participants of an Issue:
            Recent user:
            Brian Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              12 weeks, 5 days ago

                Packages

                Version Package