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

Content referenced by Asset Publishers published in Staging even when disabled

    Details

      Description

      If Staging is configured for a site but it is disabled for a specific portlet in the configuration (like Web Content or Calendar), having an Asset Publisher can still cause the portlet data to be staged as if it were enabled. This is because the Asset Publisher itself is exporting all references without checking for whether Staging is enabled for each specific type of asset entry.

      Steps to reproduce:

      1. On any site, add a Web Content article
      2. Add a Calendar portlet to a page, then add an event to it
      3. Add an Asset Publisher to the page
        • the Asset Publisher should display both the Web Content article and the Calendar event
      4. Check the database's JournalArticle and CalendarBooking tables, noting the number of rows in each
      5. Configure local live Staging for the site
        • by default, Web Content should be enabled for Staging, and Calendar disabled
      6. Check the database's JournalArticle and CalendarBooking tables
        Expected result: the JournalArticle table has a new row (because the article is published), but the CalendarBooking table does not. The Asset Publisher on the live site has the Calendar event but the one on the Staging site does not.
        Actual result: both tables have a row added, indicating both the article and Calendar booking were published. The Asset Publisher on both sites has the Calendar booking.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                summer.zhang Summer Zhang
                Reporter:
                alec.shay Alec Shay
                Participants of an Issue:
                Recent user:
                Mária Kispál (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 10 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP58
                  7.0.0 DXP SP9
                  7.0.X
                  7.1.X
                  Master