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

              yvonne.han Yvonne Han
              mariano.alvaro Mariano Álvaro
              Kiyoshi Lee Kiyoshi Lee
              Mariano Álvaro Mariano Álvaro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 37 weeks, 6 days ago

                Packages

                  Version Package
                  7.1.10 DXP FP21
                  7.1.X
                  7.2.10 DXP FP11
                  7.2.10.4 DXP SP4
                  7.2.X
                  7.3.10 DXP FP1
                  7.3.10.1 DXP SP1
                  7.3.6 CE GA7
                  7.3.X
                  7.4.13 DXP GA1
                  Master