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

Upgrade to 6.2: AsseEntries are not updated properly for global structures

    Details

      Description

      Steps to reproduce it

      1. Startup Liferay 6.0.x or 6.1.x
      2. Create a global Structure and a global template
      3. In other site, create a web content using that structure
      4. Shutdown it
      5. Upgrade to 6.2 EE using liferay-fix-pack-47 or higher

      You will see the following warning:

      18:36:53,598 INFO  [localhost-startStop-1][UpgradeProcess:163] Upgrading com.liferay.portal.upgrade.v6_2_0.UpgradeJournal
      18:37:21,926 WARN  [localhost-startStop-1][UpgradeJournal:248] Unable to get the DDM structure ID for group 10162 and journal structure ID 10293

      And this implies that the reference to the structure in the AssetEntry record for the content is lost. The field classTypeId is set to 0 instead of the structureId for the global structure.

      Additional notes
      This was working well prior to LPS-50057, the proper changes were taking place in:
      com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeAsset.updateAssetClassTypeId()
      or
      com.liferay.portal.upgrade.v6_1_0.UpgradeAsset.updateAssetClassTypeId()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              felix.zhang Felix Zhang
              Reporter:
              alberto.chaparro Alberto Chaparro
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 7 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M7