Exception on running glanceclient commands with non-ASCII arguments

Bug #1200206 reported by Flavio Percoco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Low
Flavio Percoco

Bug Description

Glanceclient fails with an UnicodeEncodeError when it tries to print an error containing non-ascii characters.

https://github.com/openstack/python-glanceclient/blob/master/glanceclient/shell.py#L475

Changed in python-glanceclient:
assignee: nobody → Flavio Percoco (flaper87)
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

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

Changed in python-glanceclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/36658
Committed: http://github.com/openstack/python-glanceclient/commit/fd0e1175795ac3a5497dcf72ed250077abaf2ed1
Submitter: Jenkins
Branch: master

commit fd0e1175795ac3a5497dcf72ed250077abaf2ed1
Author: Flaper Fesp <email address hidden>
Date: Thu Jul 11 15:28:49 2013 +0200

    Encode error messages before sending them to stdout

    When an error with non-ascii characters is caught by glanceclient, it
    fails at printing it and exists with a UnicodeEncodedError. This patch
    encodes errors' messages using strutils before sending them to stdout.

    Fixes bug: #1200206

    Change-Id: I4dabcd76ffb258840bd6a66ad23c030f34960e86

Changed in python-glanceclient:
status: In Progress → Fix Committed
Louis Taylor (kragniz)
Changed in python-glanceclient:
status: Fix Committed → Fix Released
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.