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

Cannot export/import blog entries with same title

    Details

      Description

      Steps to Reproduce:

      1. From Product Menu > Content > Blogs > Add blogs create an entry with title: "test" and content: "test".
      2. Add a second blog entry with title: "test" and content "test2".
      3. Fom Blogs, click on vertical ellipsis on top right > Export/Import > Export LAR file with the 2 blog entries (default settings).
      4. Create a new site.
      5. From Blogs, in the new site, Import LAR file from step 4.

       

       Expected Results:
      Import should be successful.

       

      Actual Results:
      Import fails with an exception like the following one:

      2021-01-05 09:50:22.724 ERROR [liferay/background_task-4][BackgroundTaskMessageListener:182] Unable to execute background task
      com.liferay.exportimport.kernel.lar.PortletDataException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.liferay.blogs.model.impl.BlogsEntryImpl#39806]
      	at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.java:408)
      	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:381)
      	at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.importStagedModel(StagedModelDataHandlerUtil.java:367)
      	at com.liferay.blogs.web.internal.exportimport.data.handler.BlogsAdminPortletDataHandler.doImportData(BlogsAdminPortletDataHandler.java:170)
      	at com.liferay.exportimport.kernel.lar.BasePortletDataHandler.importData(BasePortletDataHandler.java:390)
      	at com.liferay.exportimport.internal.controller.PortletImportControllerImpl.importPortletData(PortletImportControllerImpl.java:419)
      	at com.liferay.exportimport.internal.controller.PortletImportControllerImpl.importPortletData(PortletImportControllerImpl.java:348)
      	at com.liferay.exportimport.internal.controller.PortletImportControllerImpl.doImportPortletInfo(PortletImportControllerImpl.java:1047)
      	at com.liferay.exportimport.internal.controller.PortletImportControllerImpl.importFile(PortletImportControllerImpl.java:299)
      	at com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl.importPortletInfo(ExportImportLocalServiceImpl.java:445)
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yvonne.han Yvonne Han
              Reporter:
              mariano.alvaro Mariano Álvaro
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Engineering Assignee:
              Mariano Álvaro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP21
                  7.1.X
                  7.2.X
                  7.3.X
                  Master