We should not bypass bytes decode/encode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Cedric Brandily | ||
python-neutronclient |
Fix Released
|
High
|
Cedric Brandily | ||
Liberty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The commit fcf289797c06308
if six.PY3:
if isinstance(line, bytes):
try:
line = line.decode(
except UnicodeError:
pass
# concat line with a string
which is not working if a UnicodeError is raised: in such case line is not decoded and line is not converted in a string and the concatenation with the string fails. We should ensure that line is converted to a string
[1] https:/
[2] https:/
Changed in python-neutronclient: | |
status: | New → Confirmed |
Changed in python-neutronclient: | |
assignee: | Armando Migliaccio (armando-migliaccio) → Cedric Brandily (cbrandily) |
tags: | added: py34 |
Changed in python-neutronclient: | |
milestone: | none → 4.0.0 |
Changed in neutron: | |
milestone: | none → mitaka-1 |
importance: | Undecided → High |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
tags: | removed: liberty-backport-potential |
Changed in python-neutronclient: | |
status: | Fix Committed → Fix Released |
The bug is highlighted in https:/ /bugs.launchpad .net/python- neutronclient/ +bug/1503415