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

BlogsUserLocalServiceWrapper and SubscriptionUserLocalServiceWrapper are intercepting the wrong deleteUser() method and adding unnecessary overhead to every other service methods

    Details

      Description

      BlogsUserLocalServiceWrapper and SubscriptionUserLocalServiceWrapper are intercepting deleteUser(User), however when deleting an User from control panel, it is calling deleteUser(long), which means non of those BlogsStats and Subscription removing callbacks is invoked at all, leaving garbage data in DB.

      And also as service wrapper it wraps every other service methods too for nothing, and introducing a ClassLoaderBeanHandler proxy layer per service wrapper instance adding a lot unnecessary runtime overhead.

      Rewriting the logic to use ModelListener to ensure always receiving the callback and avoid to wrap other service methods.

        Attachments

          Activity

            People

            Assignee:
            sylvia.luan Sylvia Luan
            Reporter:
            shuyang.zhou Shuyang Zhou
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              4 years, 46 weeks, 4 days ago

                Packages

                Version Package
                7.1.X
                Master