Keystone raise 500 error when authorize request token with invalid body
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
wangxiyuan |
Bug Description
Keystone raise 500 error when authorize request token with invalid body.
reproduce:
1. create a request token first, suppose the token key is f13b2c675563413
2. PUT http://
{
"roles": [
{
"id": "711aa6371a6343
},
{
"name": "admin"
}
]
}
Keystone will raise 500 error. error log:
Traceback (most recent call last):
File "/opt/stack/
result = method(req, **params)
File "/opt/stack/
return f(self, request, *args, **kwargs)
File "/opt/stack/
authed_
KeyError: 'id'
here are two things we can improve:
1. Add the schema check for request token authorize API
2. Support role name.
To fix the 500 error, step 1 is enough.
Changed in keystone: | |
assignee: | nobody → wangxiyuan (wangxiyuan) |
Changed in keystone: | |
milestone: | none → queens-rc2 |
Fix proposed to branch: master /review. openstack. org/526295
Review: https:/