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

User cannot enable local staging with web content feeds

    Details

      Description

      Steps to reproduce:

      1. Enable 'Show Feeds' in System Settings > Web Content >Administration.
      2. Create a JournalFeed and set '/web/guest' as 'Target Page Friendly URL'.
      3. Activate local staging with all content.

      Expected result:
      Local staging should be activated without error.

      Actual result:
      User cannot enable local staging with the following errors:

      2019-10-30 06:33:43.032 ERROR [liferay/background_task-6][BackgroundTaskMessageListener:177] Unable to execute background task
      com.liferay.exportimport.kernel.lar.PortletDataException: 3
              at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:149)
              at com.liferay.exportimport.data.handler.base.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:80)
              at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportStagedModel(StagedModelDataHandlerUtil.java:144)
              at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler._exportStagedModel(ChangesetPortletDataHandler.java:312)
              at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.lambda$_exportChangesetCollection$2(ChangesetPortletDataHandler.java:257)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:394)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:306)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:268)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:326)
              at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
              at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler._exportChangesetCollection(ChangesetPortletDataHandler.java:260)
              at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.doExportData(ChangesetPortletDataHandler.java:166)
              at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:141)
              at com.liferay.exportimport.changeset.web.internal.portlet.data.handler.ChangesetPortletDataHandler.exportData(ChangesetPortletDataHandler.java:105)
              at com.liferay.exportimport.internal.controller.PortletExportControllerImpl.exportPortletData(PortletExportControllerImpl.java:727)
              at com.liferay.exportimport.internal.controller.PortletExportControllerImpl.exportPortlet(PortletExportControllerImpl.java:483)
              at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.exportPortlet(StagedGroupStagedModelDataHandler.java:375)
              at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.exportSitePortlets(StagedGroupStagedModelDataHandler.java:435)
              at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.doExportStagedModel(StagedGroupStagedModelDataHandler.java:227)
              at com.liferay.site.internal.exportimport.data.handler.StagedGroupStagedModelDataHandler.doExportStagedModel(StagedGroupStagedModelDataHandler.java:78)
              at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:102)
              at com.liferay.exportimport.data.handler.base.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:80)
              at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportStagedModel(StagedModelDataHandlerUtil.java:144)
              at com.liferay.exportimport.internal.controller.LayoutExportController.doExport(LayoutExportController.java:327)
              at com.liferay.exportimport.internal.controller.LayoutExportController.export(LayoutExportController.java:119)
              at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.exportLayoutsAsFile(ExportImportLocalServiceImpl.java:64)
              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.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
              at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
              at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
              at com.sun.proxy.$Proxy95.exportLayoutsAsFile(Unknown Source)
              at com.liferay.exportimport.kernel.service.ExportImportLocalServiceUtil.exportLayoutsAsFile(ExportImportLocalServiceUtil.java:49)
              at com.liferay.exportimport.internal.background.task.LayoutStagingBackgroundTaskExecutor.execute(LayoutStagingBackgroundTaskExecutor.java:139)
              at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:62)
              at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:41)
              at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:72)
              at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:131)
              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.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)
              at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
              at com.liferay.journal.internal.exportimport.content.processor.JournalFeedExportImportContentProcessor.replaceExportContentReferences(JournalFeedExportImportContentProcessor.java:91)
              at com.liferay.journal.internal.exportimport.data.handler.JournalFeedStagedModelDataHandler.doExportStagedModel(JournalFeedStagedModelDataHandler.java:162)
              at com.liferay.journal.internal.exportimport.data.handler.JournalFeedStagedModelDataHandler.doExportStagedModel(JournalFeedStagedModelDataHandler.java:54)
              at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:102)
              ... 46 more
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              raven.song Raven Song
              Reporter:
              joyce.wang Joyce Wang
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 17 weeks ago

                  Packages

                  Version Package
                  7.0.0 DXP FP93
                  7.0.10.14 DXP SP14
                  7.0.X
                  7.1.10 DXP FP18
                  7.1.10.5 SP5
                  7.1.X
                  7.2.10 DXP FP7
                  7.2.X
                  7.3.0 CE GA1
                  7.3.10 DXP GA1
                  Master