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

Publishing referenced content fails after being deleted in live

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.0.X
    • Fix Version/s: None
    • Component/s: Staging
    • Labels:
      None

      Description

      Steps to Reproduce

      1. Enable local live staging for all asset types
      2. Upload a document
      3. Create a web content which references said document
      4. From the web content display portlet within the control panel, select Staging.
      5. Without changing anything, there should be (1) web content selected, as well as the referenced content selected by default.
      6. Again, without changing anything, click the "Publish to Live" button
      7. Verify everything is published correctly
      8. In Live, delete the document
      9. In Staging, from the web content display portlet within the control panel, select Staging.
      10. Verify no (0) web contents will be published, because the latest publication date is sooner than the last edit date of a web content
      11. Go back and edit the web content; something trivial like it's description or title.  Make sure the referenced document is still present.
      12. From the web content display portlet within the control panel, select Staging.
      13. Verify there is now the one web content which should be published, as well as the referenced content.
      14. Attempt to publish.

      Expected Behavior
      Publication is successful, and the document is restored in live.

      Actual Behavior
      Missing Reference errors prevent publication. 

      To resolve this issue, perform one of two options. EITHER

      1. From the web content display portlet within the control panel, select Staging.
      2. Select "All" for the date range and refresh count

             OR

      1. go back to the documents and media portlet
      2. Modify the document in some trivial way
      3. Go back to the Web content portlet within the control panel

      THEN, ONCE EITHER OR BOTH OF THESE OPTIONS HAVE BEEN COMPLETED, attempt to publish the web content again. Verify the publication is successful, and the document is restored in live.

      Cause
      The issue is with the date checking for the publication.
      Although we successfully determine we need a referenced content, we do not publish it because it has a modified date which is older than the last published date, so the portal believes the most current version exists in the live site.

      Reproduced in 7.0: cb65112cc7ed6cfc09a00f58fafccca012cd0aa2
      Not reproducible in Master:  fd4417fd2f038581a04c16ea471a10d378d070eb (no Missing Reference error, document is restored in live)

       

        Attachments

          Activity

            People

            • Assignee:
              amanda.kwok Amanda Kwok
              Reporter:
              amanda.kwok Amanda Kwok
              Participants of an Issue:
              Recent user:
              Amanda Kwok
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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

                Packages

                Version Package