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

Announcements portlet not upgraded correctly

Details

    Description

      Steps to reproduce:

      1. Import the MySQL database attached to this issue.
      2. Run the upgrade process using latest master.

      Expected: The Announcements upgrade finishes successfully.
      Actual: Either the upgrade fails or a duplicate index error shows for announcements (search for IX_C7057FF7 in the upgrade logs)

      Test scenarios

      Each scenario represents one of the upgrade paths. 0.0.0 means "component was never installed before" (i.e. fresh startup), 0.0.1 means "component was installed and needs upgrade" (i.e. coming fro 6.2); the other numbers are the official revisions of the Announcements portlet (1.0.3 will be the next one released).

      Some intermediate versions have been elided (1.0.0 and 1.0.1) as the steps and expected outcome are basically be the same as in the 0.0.1 → 1.0.2 → 1.0.3 case.

      0.0.0 → 1.0.3

      This path is executed when starting a clean install for the first time. Already covered by the CI, so no need to do anything.

      0.0.1 → 1.0.3

      • Install the latest 6.2 CE bundle
      • Start the portal
      • Deploy the so-announcements-portlet plugin
      • Create a page with the Announcements, Alerts and SO Announcements portlets in it.
      • Shutdown the server.
      • Install the latest master
      • Execute the upgrade
      • Start the portal
      • Go to the announcements page and assert that:
      1. The SO portlet has disappeared.
      2. The Announcements and Alerts portlets are on the page.

      0.0.1 → 1.0.2 → 1.0.3

      • Install the latest 6.2 CE bundle
      • Start the portal
      • Deploy the so-announcements-portlet plugin
      • Create a page with the Announcements, Alerts and SO Announcements portlets in it.
      • Shutdown the server.
      • Install the 7.0 GA2 bundle
      • Execute the upgrade
      • Start the portal
      • Go to the announcements page and assert that no portlets are displayed (the SO portlet may or may not show depending on whether you have deployed the plugin again or not).
      • Shutdown the portal
      • Install the latest master
      • Execute the upgrade
      • Start the portal
      • Go to the announcements page and assert that:
      1. The SO portlet has disappeared.
      2. The Announcements and Alerts portlets are on the page.

      Attachments

        1. 69656_2.png
          69656_2.png
          490 kB
        2. 69656.png
          69656.png
          511 kB
        3. lportal.zip
          165 kB

        Issue Links

          Activity

            People

              patricia.perez Patricia Perez
              adolfo.perez Adolfo Pérez
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6 years, 16 weeks, 1 day ago

                Packages

                  Version Package
                  7.0.0 DXP FP10
                  7.0.0 DXP SP2
                  7.0.3 CE GA4
                  7.1.X
                  Master