Uploaded image for project: 'PUBLIC - Liferay Portal Web Content Experience'
  1. PUBLIC - Liferay Portal Web Content Experience
  2. WCM-655

Export/Import validation is not consistent with the same in staging

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 2.x
    • Fix Version/s: 2.x
    • Component/s: Content Targeting
    • Labels:
      None

      Description

      Reproduced on: Tomcat 8.0.32 + MariaDB 10.0. Content Targeting 2.x (content-targeting-release-2.0-7.0-RC2). Portal master GIT ID: e45a5394b2876715271e8e279af7c3b37a8a8b01.

      Steps:

      1. Add a user segment
      2. Add a campaign
      3. Add a web content with a metadata user segment
      4. Export the site and configure it:
        1. uncheck references under the user segment and campaign
        2. uncheck the Web Content
      5. Import to a new site
      6. There used to be a validation error, but now there isn't. In staging there is a validation error in portal, but for export/import there isn't. There is a console error though:
        21:23:47,040 ERROR [liferay/background_task-5][RuleInstanceStagedModelDataHandler:125] Cannot export custom data for rule Content Visited in user segment asdf
        com.liferay.exportimport.kernel.lar.PortletDataException: Cannot export rule Content Visited from user segment asdf because it refers to a missing Asset with id 0.
        	at com.liferay.content.targeting.rule.visited.ContentVisitedRule.exportData(ContentVisitedRule.java:113)
        	at com.liferay.content.targeting.lar.RuleInstanceStagedModelDataHandler.doExportStagedModel(RuleInstanceStagedModelDataHandler.java:120)
        	at com.liferay.content.targeting.lar.RuleInstanceStagedModelDataHandler.doExportStagedModel(RuleInstanceStagedModelDataHandler.java:44)
        	at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:105)
        	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportStagedModel(StagedModelDataHandlerUtil.java:153)
        	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportReferenceStagedModel(StagedModelDataHandlerUtil.java:135)
        	at com.liferay.content.targeting.lar.UserSegmentStagedModelDataHandler.exportRuleInstances(UserSegmentStagedModelDataHandler.java:271)
        	at com.liferay.content.targeting.lar.UserSegmentStagedModelDataHandler.doExportStagedModel(UserSegmentStagedModelDataHandler.java:172)
        	at com.liferay.content.targeting.lar.UserSegmentStagedModelDataHandler.doExportStagedModel(UserSegmentStagedModelDataHandler.java:49)
        	at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:105)
        	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportStagedModel(StagedModelDataHandlerUtil.java:153)
        	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportReferenceStagedModel(StagedModelDataHandlerUtil.java:135)
        	at com.liferay.content.targeting.lar.CampaignStagedModelDataHandler.exportUserSegments(CampaignStagedModelDataHandler.java:225)
        	at com.liferay.content.targeting.lar.CampaignStagedModelDataHandler.doExportStagedModel(CampaignStagedModelDataHandler.java:112)
        	at com.liferay.content.targeting.lar.CampaignStagedModelDataHandler.doExportStagedModel(CampaignStagedModelDataHandler.java:47)
        	at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.exportStagedModel(BaseStagedModelDataHandler.java:105)
        	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.exportStagedModel(StagedModelDataHandlerUtil.java:153)
        	at com.liferay.content.targeting.service.base.CampaignLocalServiceBaseImpl$3.performAction(CampaignLocalServiceBaseImpl.java:330)
        	at com.liferay.content.targeting.service.base.CampaignLocalServiceBaseImpl$3.performAction(CampaignLocalServiceBaseImpl.java:326)
        	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:396)
        	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:305)
        	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:269)
        	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:325)
        	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:85)
        	at com.liferay.content.targeting.lar.ContentTargetingPortletDataHandler.doExportData(ContentTargetingPortletDataHandler.java:119)
        	at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:139)
        	at com.liferay.exportimport.controller.PortletExportController.exportPortletData(PortletExportController.java:253)
        	at com.liferay.exportimport.controller.PortletExportController.exportPortlet(PortletExportController.java:723)
        	at com.liferay.exportimport.controller.LayoutExportController.doExport(LayoutExportController.java:523)
        	at com.liferay.exportimport.controller.LayoutExportController.export(LayoutExportController.java:152)
        	at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.exportLayoutsAsFile(ExportImportLocalServiceImpl.java:62)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:606)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
        	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)
        	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
        	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)
        	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
        	at com.sun.proxy.$Proxy156.exportLayoutsAsFile(Unknown Source)
        	at com.liferay.exportimport.kernel.service.ExportImportLocalServiceUtil.exportLayoutsAsFile(ExportImportLocalServiceUtil.java:80)
        	at com.liferay.exportimport.background.task.LayoutExportBackgroundTaskExecutor.execute(LayoutExportBackgroundTaskExecutor.java:84)
        	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:123)
        	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:745)
        

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  2.x