]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
client: escape copy source header
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 10 Nov 2014 21:29:07 +0000 (13:29 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Mon, 24 Nov 2014 23:46:08 +0000 (15:46 -0800)
Need to esacpe the x-amz-copy-source header.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
radosgw_agent/client.py

index 94db32afeed36f555cc687d44f654f73e7b73e9a..59078bd80fda3c59f1c356d0a0b427572b05de16 100644 (file)
@@ -225,7 +225,7 @@ def sync_object_intra_region(connection, bucket_name, object_name, src_zone,
                        'rgwx-op-id': op_id,
                        },
                    headers={
-                       'x-amz-copy-source': '%s/%s' % (bucket_name, object_name),
+                       'x-amz-copy-source': url_safe('%s/%s' % (bucket_name, object_name)),
                        },
                    expect_json=False)