user delete fails on LDAP when user has assigned roles

Bug #1115519 reported by Adam Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
Unassigned

Bug Description

See assigned patch:

Failuer is due to the delete loop in ldap/core.py

class UserAPI:
...
  def delete(self, id):
...

        for ref in self.role_api.list_project_roles_for_user(id):
            self.role_api.rolegrant_delete(ref.id)

UserRoleAssignement does not have an id field.

Revision history for this message
Adam Young (ayoung) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/21145

Changed in keystone:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/21145
Committed: http://github.com/openstack/keystone/commit/74c3e879f4ae1e6ed0af26b13d082915335c4d0b
Submitter: Jenkins
Branch: master

commit 74c3e879f4ae1e6ed0af26b13d082915335c4d0b
Author: Adam Young <email address hidden>
Date: Mon Feb 4 14:13:56 2013 -0500

    Delete Roles for User and Project LDAP

    Code was not including the attribute id for the member list

    Bug 1115519

    unit tests show that delete of user with roles assigned is broken for LDAP

    Change-Id: Icfa7a4a970cb9db544c3c77af9531aae5c1f56b4

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → grizzly-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: grizzly-3 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.