Project

General

Profile

Actions

Bug #22529

closed

rgw: copy_object doubles leading underscore on object names.

Added by Marcus Watts over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
jewel, luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

swift and s3 have server-side copy functions. When these are applied to an object whose name starts with a leading _, the _ is doubled.

for s3, the following copies testix/bar.txt to testix/__bar62.txt . Then s3cmd emits a bogus warning.
s3cmd cp s3://testix/bar.txt s3://testix/_bar62.txt
the warning is "WARNING: Key not found s3://testix/bar.txt". This actually means it couldn't set acls on testix/_bar62.txt .

for swift, the following results in copying container1/_file1 to container2/__file1
swift copy -d /container2 container1 _file1

This behavior does not happen if if the destination is "under" some folders. Most likely destination folders starting with _ would be wonky too, but I didn't specifically test that.

This bug is present in both master & jewel.


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #22708: luminous: rgw: copy_object doubles leading underscore on object names.ResolvedMatt BenjaminActions
Copied to rgw - Backport #22709: jewel: rgw: copy_object doubles leading underscore on object names.ResolvedMatt BenjaminActions
Actions

Also available in: Atom PDF