Comment 2 for bug 1229967

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/48308
Committed: http://github.com/openstack/cinder/commit/a1a898c4667b8e99d733f1391e0d325c8ce6e187
Submitter: Jenkins
Branch: master

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.

    Fixes bug: #1229967

    Change-Id: Ida71908b639da32b4b85846a117ef21da2fe685b