summaryrefslogtreecommitdiff
path: root/swiftclient
diff options
context:
space:
mode:
authorJude Job <judeopenstack@gmail.com>2016-01-09 18:49:17 +0530
committerJude Job <judeopenstack@gmail.com>2016-01-18 12:56:27 +0530
commit47f673ed9f8652a3e19ec12a03196e2fa79ef92a (patch)
tree88bebf23ebda65dfd3d5489f9f488d54e1937184 /swiftclient
parent4af623bcf171a63240849b84b9359a4f74471455 (diff)
downloadpython-swiftclient-47f673ed9f8652a3e19ec12a03196e2fa79ef92a.tar.gz
Error with uploading large object includes unicode path
This patch include a test case to test unicode path. Change-Id: I7697679f0034ce65b068791d7d5145286d992bd1 Closes-Bug: #1532096
Diffstat (limited to 'swiftclient')
-rw-r--r--swiftclient/service.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/swiftclient/service.py b/swiftclient/service.py
index 8df1389..bba9583 100644
--- a/swiftclient/service.py
+++ b/swiftclient/service.py
@@ -1909,7 +1909,8 @@ class SwiftService(object):
res['manifest_response_dict'] = mr
else:
new_object_manifest = '%s/%s/%s/%s/%s/' % (
- quote(seg_container), quote(obj),
+ quote(seg_container.encode('utf8')),
+ quote(obj.encode('utf8')),
put_headers['x-object-meta-mtime'], full_size,
options['segment_size'])
if old_manifest and old_manifest.rstrip('/') == \