]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
radosgw: fix doubled underscore with s3/swift server-side copy 19747/head
authorMarcus Watts <mwatts@redhat.com>
Tue, 2 Jan 2018 22:24:38 +0000 (17:24 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 3 Jan 2018 16:40:37 +0000 (11:40 -0500)
commit4bb5c856a97ec5a18010e75784ae7be38034ff05
treef8aeaecfc9246263459543e42a632fcdafb90cb6
parentf39625901cced8480fd6962ce1f41f03cc8be899
radosgw: fix doubled underscore with s3/swift server-side copy

A name is almost an oid.  Except that if a name starts
with a _, the corresponding oid starts with a double _.
The copy logic passes the oid straight in as a name,
which results in a triple _ on the oid, resulting in
an object name with a double __.

Fix: remove one _ when converting an oid back into
a name, so that the final oid only has a double _.

Fixes: http://tracker.ceph.com/issues/22529
This change is not needed on master or Luminous, due to
already-merged #18662.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_rados.cc