Project

General

Profile

Actions

Bug #21500

closed

list bucket which enable versioning get wrong result when user marker

Added by joke lee over 6 years ago. Updated about 6 years ago.

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

0%

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

Description

hi,
when enable bucket versioning and upload 1.jpg 2.jpg 3.jpg to the empty bucket and then list bucket with marker 2.jpg,the return result will contain 2.jpg, as follows:

<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/&quot;>
<Name>versionmarker2</Name>
<Prefix/>
<Marker>2.jpg</Marker>
<MaxKeys>1000</MaxKeys>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>2.jpg</Key>
<LastModified>2017-09-21T10:12:15.639Z</LastModified>
<ETag>"690a12ad1736d2eb0b01b545bb6db887"</ETag>
<Size>143126</Size>
<StorageClass>STANDARD</StorageClass>
<Owner>
<ID>b44859444312440f8caa39cfc887de81</ID>
<DisplayName>baomihua02</DisplayName>
</Owner>
</Contents>
<Contents>
<Key>3.jpg</Key>
<LastModified>2017-09-21T10:12:24.144Z</LastModified>
<ETag>"690a12ad1736d2eb0b01b545bb6db887"</ETag>
<Size>143126</Size>
<StorageClass>STANDARD</StorageClass>
<Owner>
<ID>b44859444312440f8caa39cfc887de81</ID>
<DisplayName>baomihua02</DisplayName>
</Owner>
</Contents>
</ListBucketResult>

while in amazon s3
it return


<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/&quot;>
<Name>versionmarker</Name>
<Prefix/>
<Marker>2.jpg</Marker>
<MaxKeys>1000</MaxKeys>
<IsTruncated>false</IsTruncated>
<Contents>
<Key>3.jpg</Key>
<LastModified>2017-09-21T10:01:19.000Z</LastModified>
<ETag>"690a12ad1736d2eb0b01b545bb6db887"</ETag>
<Size>143126</Size>
<Owner>
<ID>d8c826aaaa5812a67e0b5ad7a7cc8e03f91e2917d9ae0418c8b2532383745e3c</ID>
<DisplayName>cmsscloud</DisplayName>
</Owner>
<StorageClass>STANDARD</StorageClass>
</Contents>
</ListBucketResult>


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #21939: luminous: list bucket which enable versioning get wrong result when user markerResolvedActions
Copied to rgw - Backport #21954: jewel: list bucket which enable versioning get wrong result when user markerResolvedNathan CutlerActions
Actions

Also available in: Atom PDF