REST API responses from CinderExceptions are not being translated
Bug #1229967 reported by
Luis A. Garcia
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Luis A. Garcia |
Bug Description
Unlike error that result from HTTPExceptions, the error responses that result from CinderExceptions are not being translated anymore.
To reproduce an example:
Try the following request:
POST /v2/{tenant-
Body:
{"snapshot": {"volume_id": "99"}}
Headers:
Accept-Language: es (or some language installed)
Content-Type: application/json
This will result in the following:
{
"itemNotFound": {
"message": "VolumeNotFound: Volume 99 could not be found.",
"code": 404
}
}
That is, an English response (or the default locale's) even if the requested locale is available.
PS: Invalid and NotAuthorized CinderExceptions are handled correctly
Changed in cinder: | |
assignee: | nobody → Luis A. Garcia (luisg-8) |
description: | updated |
Changed in cinder: | |
milestone: | none → havana-rc1 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | havana-rc1 → 2013.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/48308
Review: https:/