Wrong exception when get item from nonexistent table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MagnetoDB |
Fix Released
|
Medium
|
Oleksandr Minakov |
Bug Description
Request:
POST http://
Request Headers:
{'Content-Type': 'application/json', 'Accept': 'application/json'}
Request Body:
{"consistent_read": true, "attributes_
Response Status: 500
Response Headers:
{'date': 'Fri, 11 Apr 2014 11:54:09 GMT', 'content-length': '269', 'content-type': 'application/json'}
Response Body:
{"explanation": "The server has either erred or is incapable of performing the requested operation.", "code": 500, "error": {"message": "'NoneType' object has no attribute 'internal_name'", "traceback": null, "type": "AttributeError"}, "title": "Internal Server Error"}
Expected response status: 404
Expected response body:
{
"explanation": "The resource could not be found."
"code": 404
"error":
{
"type": "TableNotExists
}
}
summary: |
- Wrong exception when get item from table with name '' + Wrong exception when get item from nonexistent table |
Changed in magnetodb: | |
milestone: | none → 2.0.3 |
importance: | Undecided → Medium |
description: | updated |
Changed in magnetodb: | |
assignee: | nobody → Oleksandr Minakov (oleksandr-minakov) |
Changed in magnetodb: | |
status: | New → In Progress |
description: | updated |
Changed in magnetodb: | |
milestone: | 2.0.3 → 2.0.4 |
Changed in magnetodb: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/90705
Review: https:/