Comment 6 for bug 1440135

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/282696
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=809e5533ccdbffcc73ef9c6bda158e7f8386bb08
Submitter: Jenkins
Branch: master

commit 809e5533ccdbffcc73ef9c6bda158e7f8386bb08
Author: Clenimar Filemon <email address hidden>
Date: Sat Feb 20 12:47:24 2016 -0300

    Fix incorrect assumption when deleting assignments

    The methods delete_user_assignments() and delete_group_assignments()
    in the assignment backend remove all assignments for a user/group -
    although the code fails to set the type of assignment and just uses
    actor_id, making an assumption that user_id != group_id.

    This patch specifies the type of assignments in the delete (i.e
    USER_PROJECT/USER_DOMAIN or GROUP_PROJECT/GROUP_DOMAIN) to make sure
    no assignment will be mistakenly deleted.

    Change-Id: I246a61a291dd41490f49b7b26a04f93e69e61d7a
    Closes-Bug: #1440135