keystone/keystone
wangxiyuan f8e79ab507 Fix 500 error when create trust with invalid role key
When create trust with invalid role key(neither 'id' nor
'name'), Keystone should raise 400 BadRequest, instead of
500 Internal Error.

This patch removed the redundant loops in
_normalize_role_list as well.

Change-Id: I62bd201c1dda7b573e2ee8b97322c1f25275892c
Closes-bug: #1734244
2017-11-27 15:11:34 +00:00
..
assignment Remove v2.0 assignment schema 2017-10-19 18:08:32 +08:00
auth Fix 500 error when authenticate with "mapped" 2017-11-08 15:14:41 +08:00
catalog Remove v2 schema and validation tests 2017-10-19 17:20:47 -05:00
cmd Update links in keystone 2017-09-12 15:18:13 +08:00
common Populate user, project and domain names from token into context 2017-11-20 12:13:32 +00:00
conf Update the help message for unique_last_password_count 2017-11-24 08:52:12 +08:00
contrib Fix ec2tokens validation in v2 after regression in metadata_ref removal 2017-07-28 16:20:53 +02:00
credential Adds Bandit #nosec flag to instances of SHA1 2017-09-07 14:01:35 -05:00
endpoint_policy Ensure the endpoint policy API supports HEAD 2017-06-20 19:44:43 +00:00
federation Merge "Emit deprecation warning for federated domain/project APIs" 2017-10-20 20:28:47 +00:00
identity Merge "Filter users/groups in ldap with whitespaces" 2017-11-14 20:26:47 +00:00
locale Imported Translations from Zanata 2017-08-02 07:49:09 +00:00
middleware Remove "no auth token" debug log 2017-10-24 21:54:14 +02:00
models Remove v2 token value model 2017-10-26 16:09:11 +08:00
oauth1 Ensure oauth API supports HEAD 2017-06-21 15:00:38 +00:00
policy Deprecate policies API 2017-11-02 14:59:53 -04:00
resource Merge "Remove ensure_default_domain_exists" 2017-11-04 11:06:30 +00:00
revoke Remove unused revoke_by_domain_role_assignment 2017-03-24 15:22:04 +00:00
server Merge "Remove log translations in keystone" 2017-03-27 17:35:03 +00:00
tests Fix 500 error when create trust with invalid role key 2017-11-27 15:11:34 +00:00
token Remove v2 token value model 2017-10-26 16:09:11 +08:00
trust Fix 500 error when create trust with invalid role key 2017-11-27 15:11:34 +00:00
v2_crud Remove v2.0 identity APIs 2017-09-29 20:42:12 +00:00
version Remove v2.0 auth APIs 2017-09-30 15:31:45 +00:00
__init__.py Revert "Disable eventlet monkey-patching of DNS" 2013-05-10 10:24:48 -04:00
exception.py Update the help message for unique_last_password_count 2017-11-24 08:52:12 +08:00
i18n.py Update links in keystone 2017-09-12 15:18:13 +08:00
notifications.py Remove log translations in keystone 2017-03-25 18:17:15 +00:00