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

Single Asset - Publishing a folder to live fails if the folder has a pending document or web content

    Details

      Description

      This error happens for both web content and documents and media. It also happens as long as there is one document/article that is in pending status. That will prevent the folder from being published altogether even if it has other approved assets in it.

      Steps to reproduce:

      1. Create a folder
      2. Edit folder to have workflow enabled (single approver)
      3. Add a document to the folder and assert it is ready for publication
      4. Publish the folder (SAP)

      Expected result: Folder gets published (but the pending document should not be published)
      Actual result: There is a publish to live error and the folder is not published at all.

      An unexpected error occurred with the publication process. Please check your portal and publishing configuration.
      The following error in while exporting its data has stopped the process: com.liferay.exportimport.kernel.lar.PortletDataException
      
      2018-06-15 19:47:30.462 ERROR [liferay/background_task-5][BackgroundTaskMessageListener:168] Unable to execute background task
      com.liferay.exportimport.kernel.lar.PortletDataException: com.liferay.exportimport.kernel.lar.PortletDataException
      	at com.liferay.exportimport.kernel.lar.BasePortletDataHandler._handleException(BasePortletDataHandler.java:863)
      	at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:145)
      	at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.exportData(ChangesetPortletDataHandler.java:99)
      	at com.liferay.exportimport.internal.controller.PortletExportControllerImpl.exportPortletData(PortletExportControllerImpl.java:703)
      	at com.liferay.exportimport.internal.controller.PortletExportControllerImpl.exportPortlet(PortletExportControllerImpl.java:455)
      	at com.liferay.exportimport.internal.controller.PortletExportControllerImpl.doExport(PortletExportControllerImpl.java:919)
      	at com.liferay.exportimport.internal.controller.PortletExportControllerImpl.export(PortletExportControllerImpl.java:151)
      	at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.exportPortletInfoAsFile(ExportImportLocalServiceImpl.java:149)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	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:158)
      	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:135)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:145)
      	at com.sun.proxy.$Proxy172.exportPortletInfoAsFile(Unknown Source)
      	at com.liferay.exportimport.kernel.service.ExportImportLocalServiceUtil.exportPortletInfoAsFile(ExportImportLocalServiceUtil.java:80)
      	at com.liferay.exportimport.internal.background.task.PortletStagingBackgroundTaskExecutor$PortletStagingCallable.call(PortletStagingBackgroundTaskExecutor.java:150)
      	at com.liferay.exportimport.internal.background.task.PortletStagingBackgroundTaskExecutor$PortletStagingCallable.call(PortletStagingBackgroundTaskExecutor.java:137)
      	at com.liferay.portal.spring.transaction.TransactionInvokerImpl$CallableMethodInvocation.proceed(TransactionInvokerImpl.java:101)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54)
      	at com.liferay.portal.spring.transaction.TransactionInvokerImpl.invoke(TransactionInvokerImpl.java:47)
      	at com.liferay.portal.kernel.transaction.TransactionInvokerUtil.invoke(TransactionInvokerUtil.java:28)
      	at com.liferay.exportimport.internal.background.task.PortletStagingBackgroundTaskExecutor.execute(PortletStagingBackgroundTaskExecutor.java:91)
      	at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:62)
      	at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43)
      	at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:75)
      	at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:127)
      	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)
      Caused by: com.liferay.exportimport.kernel.exception.ExportImportRuntimeException: com.liferay.exportimport.kernel.lar.PortletDataException
      	at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.lambda$doExportData$0(ChangesetPortletDataHandler.java:182)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
      	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
      	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      	at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      	at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.doExportData(ChangesetPortletDataHandler.java:175)
      	at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:141)
      	... 36 more
      Caused by: com.liferay.exportimport.kernel.lar.PortletDataException
      	at com.liferay.document.library.internal.exportimport.data.handler.FileEntryStagedModelDataHandler.validateExport(FileEntryStagedModelDataHandler.java:889)
      	at com.liferay.document.library.internal.exportimport.data.handler.FileEntryStagedModelDataHandler.validateExport(FileEntryStagedModelDataHandler.java:104)
      	at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:77)
      	at com.liferay.exportimport.data.handler.base.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:76)
      	at com.liferay.document.library.internal.exportimport.data.handler.FileEntryStagedModelDataHandler.exportStagedModel(FileEntryStagedModelDataHandler.java:135)
      	at com.liferay.document.library.internal.exportimport.data.handler.FileEntryStagedModelDataHandler.exportStagedModel(FileEntryStagedModelDataHandler.java:104)
      	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportStagedModel(StagedModelDataHandlerUtil.java:173)
      	at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.lambda$doExportData$0(ChangesetPortletDataHandler.java:178)
      	... 48 more
      

      Reproduced on:
      Wildfly 10 + PostgreSQL 10.3
      Portal 7.1.x-private GIT ID: 8953642feab9f6a3b0f9129e867abb851c1630e6

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 28 weeks, 6 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master