User role deletion is broken

Bug #1020109 reported by Unmesh Gurjar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
Unmesh Gurjar

Bug Description

Scenario: Using the Keystone Admin API, delete a user's role.
sample API call: DELETE v2.0/users/{user_id}/roles/OS-KSADM/{role_id}

Branch: master

Expected Result: API should return 501 (Not Implemented) response (since the idea of user-only roles is expected to die off).

Actual Result: API returns 500 Internal Server Error.

Stack trace: Following is the stack trace:
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 208, in call_func
    return self.func(req, *args, **kwargs)
  File "/opt/stack/keystone/keystone/common/wsgi.py", line 199, in __call__
    method = getattr(self, action)
AttributeError: 'RoleController' object has no attribute 'delete_role_from_user'

Tags: ntt
Changed in keystone:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
Joseph Heck (heckj)
Changed in keystone:
status: New → Triaged
importance: Undecided → High
description: updated
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/9259

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

Reviewed: https://review.openstack.org/9259
Committed: http://github.com/openstack/keystone/commit/94481ab3fddc106438bdcaded85992700ebdf121
Submitter: Jenkins
Branch: master

commit 94481ab3fddc106438bdcaded85992700ebdf121
Author: Unmesh Gurjar <email address hidden>
Date: Tue Jul 3 10:27:58 2012 +0530

    Fixed user-only role deletion error.

    Fixed the error on deleting a user-only role to return a 501 error response.
    Fixes bug 1020109.

    Change-Id: I7ff4d0c29bb7665468d9109c86a360148cff9214

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: folsom-2 → 2012.2
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.