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

Unable to upgrade com.liferay.dynamic.data.mapping.service module to 1.0.0

    Details

      Description

      Steps to reproduce it:

      1. Startup a 6.2 version, and create a Journal article using a DDMStructure.
      2. Shutdown it.
      3. In a liferay 7 server, create a file called com.liferay.portal.upgrade.internal.configuration.ReleaseManagerConfiguration.cfg in osgi/configs/ folder with the following content
        autoUpgrade=false
      4. Startup the server against a database from a previous version of Liferay to perform an upgrade
      5. After finishing it, connect to GoGo console:
        telnet localhost 11311
      6. Execute the following command:
        upgrade:execute com.liferay.dynamic.data.mapping.service

      You will get the following exception:

      gogo: RuntimeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.lang.NullPointerException

      Technical notes:
      The reason for this error is that the map com.liferay.dynamic.data.mapping.service.permission.DDMPermissionSupportTracker._ddmStructurePermissionSupportServiceTrackerMap is not loaded when is needed in com.liferay.dynamic.data.mapping.upgrade.v1_0_0.UpgradeDynamicDataMapping.upgradeStructurePermissions(). However, if we load it before executing the upgrade we will get the following exception:

      gogo: RuntimeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.PortalException: The model does not support DDMStructure permission checking com.liferay.portlet.journal.model.JournalArticle

      Due to the className values are still the old ones in the ClassName table for JournalArticle.

        Attachments

          Activity

            People

            Assignee:
            beck.liu Beck Liu
            Reporter:
            alberto.chaparro Alberto Chaparro
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.0.0 Alpha 4