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

Publish to Live fails at the second time with category

    Details

      Description

      Step to reproduce:

      1. Add a new site
      2. Enable Local Live
      3. Navigate to Staging site
      4. Add a vocabulary in staging site
      5. Add a category in vocabulary
      6. Click the ellipsis button on Control Menu > Staging > Publish to Live
      7. Assert success message
      8. Add a web content article based on Basic Web Content
      9. Select the new category and Publish
      10. Click the ellipsis button on Control Menu > Staging > Publish to Live

      Expected Results:
      The Publish to Live should succeed.

      Actual Results:
      The following error message is shown in popup:

      An unexpected error occurred with the publication process. Please check your portal and publishing configuration.
      The Category Vocabulary Vocabulary Name could not be imported because of the following error: A category vocabulary with the name Vocabulary Name already exists.
      

      Additionally, the following error is thrown in log console.

      2020-08-03 01:28:09.328 ERROR [liferay/background_task-8][BackgroundTaskMessageListener:182] Unable to execute background task
      com.liferay.exportimport.kernel.lar.PortletDataException: A category vocabulary with the name Vocabulary Name already exists
              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.exportimport.kernel.lar.StagedModelDataHandlerUtil.doImportReferenceStagedModel(StagedModelDataHandlerUtil.java:454)
              at com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil.importReferenceStagedModel(StagedModelDataHandlerUtil.java:296)
              at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.importReferenceStagedModels(BaseStagedModelDataHandler.java:859)
              at com.liferay.exportimport.kernel.lar.BaseStagedModelDataHandler.importStagedModel(BaseStagedModelDataHandler.j
      

      Reproduced on:
      Tomcat 9.0.33 + MySQL 5.7. Portal master GIT ID: a20c7ad437fccefb74adcfddf2d750d339b555c2.

      Cannot be reproduced on:
      Tomcat 9.0.33 + MySQL 5.7. Portal 7.3.3-GA4.

        Attachments

        1. master.png
          master.png
          22 kB
        2. Video.gif
          Video.gif
          4.77 MB

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            yang.cao Yang Cao
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.3.4 CE GA5
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master