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

Simple Portlet being listed in DataSiteLevelPortlets before Admin Portlet results in the wrong last publish date being used.

    Details

    • What problem did the customer find?:
      After creating Sites and adding content, when attempting to Publish to Live, the asset count does not appropriately reflect the correct content that will be published
    • What do you think is the root cause? (if known):
      Hide
      Portlets with an admin portlet share the same data handler. For example BlogsPortlet and BlogsAdminPortlet. This becomes a problem because only one of the portlets will be used for the asset count and only BlogsAdminPortlet has the correct last publish date. If BlogsPortlet loads first when staging is started, then BlogsPortlet will be considered the "staged" portlet between the two and BlogsAdminPortlet will not be usable when getting model addition counts for staging.

      A more detailed explanation can be found here: https://issues.liferay.com/browse/LPP-29905?focusedCommentId=1319617&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1319617
      Show
      Portlets with an admin portlet share the same data handler. For example BlogsPortlet and BlogsAdminPortlet. This becomes a problem because only one of the portlets will be used for the asset count and only BlogsAdminPortlet has the correct last publish date. If BlogsPortlet loads first when staging is started, then BlogsPortlet will be considered the "staged" portlet between the two and BlogsAdminPortlet will not be usable when getting model addition counts for staging. A more detailed explanation can be found here: https://issues.liferay.com/browse/LPP-29905?focusedCommentId=1319617&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1319617
    • Proposed solution (if any):
      Hide
      Create two datahandlers for these portlets, one for the Admin, and one for the other.

      More detailed explanation:
      https://issues.liferay.com/browse/LPP-29905?focusedCommentId=1320418&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1320418
      Show
      Create two datahandlers for these portlets, one for the Admin, and one for the other. More detailed explanation: https://issues.liferay.com/browse/LPP-29905?focusedCommentId=1320418&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1320418

      Description

      Description:

      When publishing a staged site the DLAdminPortlet may be listed in DataSiteLevelPortlets after DLPortlet. This causes the last publish date stored by DLPortlet to be used instead of the last publish date stored by DLAdminPortlet. Since the last publish date stored by DLPortlet is shared between staged sites on the same portal instance, it can lead to incorrect Document and Media counts being displayed during publication.

      This issue is also reproducible with any component that shares a portlet data handler between the simple portlet and admin portlet (e.g. Wiki, Bookmarks, MB, and Blogs).

       

      Reproduction Steps:

      1. Create a site, Site1. Add a page, Page1 to the site.
      2. Turn on Local Live Staging. Check that Documents & Media is selected under 'Staged Content'.
      3. Create a basic document.
      4. Go to your staged page and click "Publish to Live". "Changes Since Last Publication" should read Pages 1 of 1 and Documents & Media 1. Close the prompt without publishing.
      5. Create a site, Site2. Add a page, Page2 to the site.
      6. Turn on Local Live Staging. Check that Documents & Media is selected under 'Staged Content'.
      7. Return to Site1. Click "Publish to Live".

      Expected Results: "Changes Since Last Publication" should read Pages 1 of 1 and Documents & Media 1.

      Actual Results: "Changes Since Last Publication" reads Pages 1 of 1. Documents & Media is not listed.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.1.X
                  Master