role case sensitivity
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Alexej Ababilov |
Bug Description
Nova and Keystone are case insensitive when checking roles.
nova:
if self.is_admin is None:
keystone:
def _check_role(self, match, target_dict, cred_dict):
"""Check that there is a matching role in the cred dict."""
return match.lower() in [x.lower() for x in cred_dict['roles']]
However, glance is case sensitive:
roles = [r.strip() for r in roles_header.
...
'is_admin': self.conf.
By default, self.conf.
Let's fix it:
roles = [r.strip().lower() for r in roles_header.
Changed in glance: | |
status: | In Progress → Opinion |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | folsom-2 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/8341
Review: https:/