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

Portlet preferences are not retrieved properly for layout revisions

    Details

      Description

      Portlet A sits on Layout B, There is a Layout revision C and when the preferences are retrieved from the render request it's attempting to retrieve the prefs from Layout C, but at this point the prefs only exist on B.

      Since the portlet preference for Layout revision C doesn't exist, it should read from the preferences of layout B.

      Copied from LPS-66266
      Steps to reproduce:
      Use the attached dump, or:

      1. Add a new site
      2. Activate Staging > local live on the new site
      3. Add a site page to the new site and navigate to it
      4. Add a nested portlet with a few portlets in the site page (this should be staged)
      5. Shut down Portal
      6. Upgrade to Liferay 7 using the upgrade tool. Notes for how to upgrade can be found here and here
      7. Start up Portal and navigate to staged site page

      Expected result:
      Staging page should have a nested portlet with the added portlets inside.

      Actual result:
      Staging page has a nested portlet with no portlets inside.

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.6.
      Portal ee-7.0.x GIT ID: 248837d0fd55142fcd767b701e6be4a1d819ba9b
      Upgraded from 6.1EE and 6.2EE.

      A similar bug (also addressed by the original fix) can be reproduced in layout revisions when upgrading from 6.1 to 6.2.

      Steps to reproduce when upgrading to 6.2:

      1. Start up Liferay 6.1
      2. Configure the Liferay site to use local staging, with page versioning enabled for public pages
      3. Create a new page version
      4. On the new page version, add a Web Content display portlet
      5. Create some Web Content, and configure the Web Content display portlet to display it
      6. Shut down Liferay, then upgrade to 6.2 and start up Liferay
      7. Login and navigate to the second page version

      Expected result: the Web Content display portlet is still there showing the selected Web Content (in the database, the PortletPreferences are still present)
      Actual result: the Web Content display portlet now displays no content (in the database, the PortletPreferences have been deleted)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 50 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2