Public bug reported: When a user try to create a trust, if the "roles" in the request body contains some invalid keys(except "id" and "name"), Keystone will raise 500 error.
an example: curl -g -i -X POST http://10.3.150.25/identity/v3/OS-TRUST/trusts -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: gAAAAABaF5Odiawpf1t9BAAhyS3_FBZCKDPycpOnSndiC0TEmqemZvnINxcTPHLGR0J3mnjf60TdqIpct7SgO5movr5uWY- hmTT4R2Sr_5rYOPC_-w0y6XWbNn265U5IKVz0qMRr- 1VagtuA3iPmyZkjCbFweZsP8yFkwWSxkY4_I0U6JTPzllM" -d '{"trust": {"impersonation": false, "project_id": "d88a1e3ce2504a10a5340225b85a844c", "trustor_user_id": "f98b4cc01a554453a84fa4b9ccf5a1f0", "roles": [{"fake_key": "123"}], "trustee_user_id": "c8b34ea0d6d6406aae5993061de92e77"}}' ** Affects: keystone Importance: Undecided Assignee: wangxiyuan (wangxiyuan) Status: New ** Changed in: keystone Assignee: (unassigned) => wangxiyuan (wangxiyuan) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1734244 Title: keystone raise 500 error when create trust with invalid role key Status in OpenStack Identity (keystone): New Bug description: When a user try to create a trust, if the "roles" in the request body contains some invalid keys(except "id" and "name"), Keystone will raise 500 error. an example: curl -g -i -X POST http://10.3.150.25/identity/v3/OS-TRUST/trusts -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: gAAAAABaF5Odiawpf1t9BAAhyS3_FBZCKDPycpOnSndiC0TEmqemZvnINxcTPHLGR0J3mnjf60TdqIpct7SgO5movr5uWY- hmTT4R2Sr_5rYOPC_-w0y6XWbNn265U5IKVz0qMRr- 1VagtuA3iPmyZkjCbFweZsP8yFkwWSxkY4_I0U6JTPzllM" -d '{"trust": {"impersonation": false, "project_id": "d88a1e3ce2504a10a5340225b85a844c", "trustor_user_id": "f98b4cc01a554453a84fa4b9ccf5a1f0", "roles": [{"fake_key": "123"}], "trustee_user_id": "c8b34ea0d6d6406aae5993061de92e77"}}' To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1734244/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp