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

Importing page-scoped blog entry with tags fails with UnsupportedOperationException

    Details

      Description

      Reproduction steps:

      1. Create a blank site
      2. Create a public page "TestBlog" in it
      3. Add Blogs Portlet to it, configure it for Scope "TestBlog"
      4. Add blog entry with random content AND 1 or more tags
      5. go to Content & Data -> Blogs -> change scope to "TestBlog"
      6. export the blogs via Import/Export (default settings)
      7. Then delete the blog entry (also empty bin)
      8. go back to Blogs with Scope "TestBlog" and go to Import / Export
      9. Now import the created lar file (step 6) with default settings

      Expected outcome:
      BlogEntry is imported with tags without problems

      Actual Outcome:
      Import fails with

      An unexpected error occurred with the publication process. Please check your portal and publishing configuration.
      The following error in Blogs while importing its data has stopped the process: java.lang.UnsupportedOperationException

      Notes:

      • Reproducible with basic web contents as well (same way: use a page scope)
      • Not reproducible when using categories
      • Most probable reason: AssetTagStagedModelDataHandler does not override doImportMissingReference(..) method, while AssetCategoryStagedModelDataHandler does. The asset tags are only exported as missing-reference when the tags and the assets belong to a different scope. That might be the reason why this bug was not discovered earlier.

        Attachments

          Activity

            People

            Assignee:
            yvonne.han Yvonne Han
            Reporter:
            vendel.toreki Vendel Töreki
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Istvan Dezsi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.2.10 DXP FP11
                7.2.10.3 DXP SP4
                7.2.X
                7.3.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                Master