keystone/releasenotes/notes/bug-1734244-1b4ea83baa72566d.yaml
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

7 lines
207 B
YAML

---
fixes:
- |
[`bug 1734244 <https://bugs.launchpad.net/keystone/+bug/1734244>`_]
Return a 400 status code instead of a 500 when creating a trust with
extra attributes in the roles parameter.