"swift stat container åbject" fails when object exists and has non-ascii in name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
New
|
Undecided
|
Unassigned | ||
python-swiftclient (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
$ swift stat -- container 'åbject'
Traceback (most recent call last):
File "/usr/bin/swift", line 1479, in <module>
globals(
File "/usr/bin/swift", line 671, in st_stat
command_
File "/usr/lib/
), skip_missing=True)
File "/usr/lib/
self.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 58: ordinal not in range(128)
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=en_IE.UTF-8
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=en_IE.UTF-8
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
Partial(*) temp fix (real fix is python3):
--- /usr/lib/
+++ /usr/lib/
@@ -89,7 +89,7 @@
thread_
- ('Object', args[1]),
+ ('Object', unicode(args[1], 'utf8')),
('Content Type', headers.
('Content Length', content_length),
('Last Modified', headers.
*: Most likely similar issue exists for container names as well.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python-swiftclient 1:2.0.3-0ubuntu1 [modified: usr/lib/
ProcVersionSign
Uname: Linux 3.13.0-45-generic i686
ApportVersion: 2.14.1-0ubuntu3.7
Architecture: i386
Date: Thu Feb 26 21:07:52 2015
InstallationDate: Installed on 2010-12-23 (1525 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitec
SourcePackage: python-swiftclient
UpgradeStatus: Upgraded to trusty on 2015-02-19 (7 days ago)
Changed in python-swiftclient (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Triaged |