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

Can not export web content after removing previous field

    Details

      Description

      Step to reproduce:

      1. Add a web content structure with a Text field
      2. Add a web content based on new structure
      3. Type title and text
      4. Publish
      5. Modify the new structure
      6. Remove the Text field
      7. Add a Web Content field
      8. Save
      9. Web Content tab > Click the ellipsis button next to Applications Menu icon > Export/Import
      10. Export

      Expected Results:
      The export process should be succeeded.

      Actual Results:
      The export process failed. The following error is thrown in server console

      2021-03-18 04:15:23.821 ERROR [liferay/background_task-10][BackgroundTaskMessageListener:182] Unable to execute background task
      com.liferay.exportimport.kernel.lar.PortletDataException
              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:170)
              at com.liferay.journal.service.base.JournalArticleLocalServiceBaseImpl$3.performAction(JournalArticleLocalServiceBaseImpl.java:474)
              at com.liferay.journal.service.base.JournalArticleLocalServiceBaseImpl$3.performAction(JournalArticleLocalServiceBaseImpl.java:468)
              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.
      

      Reproduced on:
      Tomcat 9.0.43 + MySQL 5.7. Portal master GIT ID: 6ba6920f47011194ab89d1d7d7b7420b981c8356.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Engineering Assignee:
              Eudaldo Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.4.0 CE GA1
                  Master