commit a1a898c4667b8e99d733f1391e0d325c8ce6e187
Author: Luis A. Garcia <email address hidden>
Date: Tue Sep 24 22:07:55 2013 +0000
Fix translation of CinderExceptions in REST API
When creating a Fault from a CinderException wrapped in an
HTTPException, we were converting the inner explanation to unicode
before it was able to reach the Fault's call() method which is where
translation occurs, and unicode objects can't be translated.
This patch preserves the CinderException's Message object and puts it in
another Message object as the explanation to the HTTPException so it can
be translated.
Reviewed: https:/ /review. openstack. org/48308 github. com/openstack/ cinder/ commit/ a1a898c4667b8e9 9d733f1391e0d32 5c8ce6e187
Committed: http://
Submitter: Jenkins
Branch: master
commit a1a898c4667b8e9 9d733f1391e0d32 5c8ce6e187
Author: Luis A. Garcia <email address hidden>
Date: Tue Sep 24 22:07:55 2013 +0000
Fix translation of CinderExceptions in REST API
When creating a Fault from a CinderException wrapped in an
HTTPException, we were converting the inner explanation to unicode
before it was able to reach the Fault's call() method which is where
translation occurs, and unicode objects can't be translated.
This patch preserves the CinderException's Message object and puts it in
another Message object as the explanation to the HTTPException so it can
be translated.
Fixes bug: #1229967
Change-Id: Ida71908b639da3 2b4b85846a117ef 21da2fe685b