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

Creating a draft web content makes it invisible in the Asset Publisher

    Details

      Description

      With the inclusion of LPS-114855, if you have an Asset Publisher portlet displaying a web content and create a draft article, it will cause the content in the Asset Publisher to disappear. Deleting the draft does not fix this.

      This is because instead of creating a new assetEntry, we are updating the existing entry.  The changes in LPS-114855 introduced this change by including an incorrect check.

      Steps to reproduce
      1. Start with a clean bundle at patch level DXP 7.2 fixpack 6.
      2. Create a basic web content article.
      3. Place an asset publisher on the home page. Verify that the asset publisher displays the article.
      4. Edit the article and save a new version as a draft.

      Expected: asset publisher displays the published version.
      Observed: asset publisher displays nothing.

      5. Go into the article's version history and delete the draft article.
      Expected: asset publisher displays the only, published version remaining.
      Observed: asset publisher displays nothing.

      Errors
      None

      Testing
      Not reproduced in DXP-5
      Reproduced in 7.2 DXP-6
      Reproduced in 72x-20200708
      Reproduced in master-20200708

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              christopher.kian Christopher Kian
              Participants of an Issue:
              Recent user:
              Balázs Sáfrány-Kovalik
              Engineering Assignee:
              Christopher Kian
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 14 weeks ago

                  Packages

                  Version Package
                  7.0.0 DXP FP94
                  7.0.10.15 DXP SP15
                  7.0.X
                  7.1.10 DXP FP19
                  7.1.10.5 SP5
                  7.1.X
                  7.2.10 DXP FP7
                  7.2.X
                  7.3.4 CE GA5
                  7.3.10 DXP GA1
                  Master