list_user_projects method at assignment manager needs to be removed

Bug #1415189 reported by Samuel de Medeiros Queiroz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Undecided
Wu Wenxiang

Bug Description

The method list_user_projects at assignment manager [1] is not called anywhere.
In addition, it makes a call to list_user_projects on assignment drivers, which does not exist at all.

[1] https://github.com/openstack/keystone/blob/master/keystone/assignment/core.py#L679-L681

Changed in keystone:
assignee: nobody → Wu Wenxiang (wu-wenxiang)
Revision history for this message
Wu Wenxiang (wu-wenxiang) wrote :

Hello,

After checking the codes, the drivers' list_user_projects() isn't exist.
However, is it really not called anywhere?

The API /users/{user_id}/projects in keystone/assignment/routers.py is deleted?

$ grep -r "list_user_projects" *
etc/policy.json: "identity:list_user_projects": "rule:admin_or_owner",
etc/policy.v3cloudsample.json: "identity:list_user_projects": "rule:owner or rule:admin_and_matching_domain_id",
keystone/assignment/controllers.py: def list_user_projects(self, context, filters, user_id):
keystone/assignment/core.py: def list_user_projects(self, user_id, hints=None):
keystone/assignment/core.py: return self.driver.list_user_projects(
keystone/assignment/routers.py: get_action='list_user_projects',

Revision history for this message
Samuel de Medeiros Queiroz (samueldmq) wrote :

I have no idea how this bug was reported twice.
Please see [1]. I am already fixing this, sorry.

Thanks

[1] https://bugs.launchpad.net/keystone/+bug/1415190

Changed in keystone:
status: New → Invalid
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.