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

VerifyResourcePermission leaves ownerId at zero/null when upgrading from 6.0 and contacts are missing

    Details

      Description

      1. Start up Liferay 6.0 CE GA1 against a clean MySQL database.
      2. Shut down Liferay.
      3. Delete all the entries from the Contact_ table to simulate corrupted data.
      4. Start up Liferay (master) to start the upgrade process.
      5. Run the following query against MySQL:

      select count from ResourcePermission where name = 'com.liferay.portal.model.User' and (ownerId = 0 or ownerId is null);

      Expectation is that all ownerIds will be properly populated, just as they would be if all contacts existed. Actual behavior is that the ownerIds are not properly populated.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 43 weeks ago

                  Packages

                  Version Package
                  7.0.0 M1