[Bug 1418276] [NEW] Deleting a user via the REST API does not delete their user preferences

Andrew Stuart andrew.stuart at supercoders.com.au
Thu Feb 5 02:29:53 CET 2015


Public bug reported:

The on_delete function in rest/users.py appears to not delete user
preferences when the user is deleted resulting in an accumulation of
orphaned preferences data.

    def on_delete(self, request, response):
        """Delete the named user, all her memberships, and addresses."""
        if self._user is None:
            not_found(response)
            return
        for member in self._user.memberships.members:
            member.unsubscribe()
        user_manager = getUtility(IUserManager)
        for address in self._user.addresses:
            user_manager.delete_address(address)
        user_manager.delete_user(self._user)
        no_content(response)

** Affects: mailman
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/1418276

Title:
  Deleting a user via the REST API does not delete their user
  preferences

To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/1418276/+subscriptions


More information about the Mailman-coders mailing list