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

Upgrading userSegments created by a deleted user throws exception.

    Details

      Description

      Description
      A user segment created by a user who was deleted before an upgrade cannot be upgraded.

      Steps to Reproduce

      1. Start Liferay DXP 7.1 with Audience Targeting deployed
      2. Create a user named user1 and give them the admin role
      3. Sign in with the new user
      4. Go to Site > Configuration > Audience Targeting
      5. Create a user segment
      6. Sign out with user1
      7. Sign in with Test
      8. Delete user1
      9. Shutdown and upgrade to master/7.2.x

      Expected Results
      Upgrade completes with no errors

      Actual Results
      Upgrade throws a NoSuchUserException in UpgradeContentTargeting.upgradeUserSegments

        Attachments

          Activity

            People

            Assignee:
            samuel.ziemer Sam Ziemer
            Reporter:
            samuel.ziemer Sam Ziemer
            Participants of an Issue:
            Recent user:
            Jason Pince
            Engineering Assignee:
            Sam Ziemer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 1 week, 6 days ago

                Packages

                Version Package
                7.2.10 DXP FP4
                7.2.X
                7.3.0 CE GA1
                7.3.10 DXP GA1
                Master