Translated exceptions UnicodeEncodeError

Bug #1284827 reported by Matthew D. Wood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Matthew D. Wood

Bug Description

If an exception whose message has been translated get all the way into horizon.exceptions.handle, a UnicodeEncodeError will be thrown for the logging calls. This can be avoided if the exceptions are cast into a unicode before-hand.

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

Fix proposed to branch: master
Review: https://review.openstack.org/76354

Changed in horizon:
assignee: nobody → Matthew D. Wood (woodm1979)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/76354
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=3617fb378577a2918e16689c6efa43d2e43904c1
Submitter: Jenkins
Branch: master

commit 3617fb378577a2918e16689c6efa43d2e43904c1
Author: woodm1979 <email address hidden>
Date: Tue Feb 25 13:44:52 2014 -0700

    Accept translated exceptions in exceptions.handle

    If an exception with a translated message is thrown into
    horizon.exceptions.handle, a UnicodeEncodeError is thrown in logging calls.

    Also added in a test for this behavior.

    Change-Id: I0bc71477d836daa0e27cdb10646b748fdc963f5d
    Closes-Bug: 1284827

Changed in horizon:
status: In Progress → Fix Committed
Changed in horizon:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-2 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.