HTTP 405 code is not handled as exception
Bug #1116559 reported by
Lin Hua Cheng
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
Medium
|
Lin Hua Cheng |
Bug Description
Keystone publicURL expose a subset of Keystone APIs, and internalURL exposed the Admin REST API.
If the user misconfigured the endpoint and sends a Admin REST call to the publicURL it would returned a 405 error since the API is not supported.
Currently, keystoneclient does not recognized 405 error and treats it as success.
Keystone-client should treat all HTTP code above 400 as error instead of selecting of picking the error code to handle
Related code in client.py:
if resp.status_code in (400, 401, 403, 404, 408, 409, 413, 500, 501):
Changed in python-keystoneclient: | |
importance: | Undecided → Medium |
status: | Fix Committed → Fix Released |
milestone: | none → 0.2.3 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/21238
Review: https:/