Project

General

Profile

Bug #21500

list bucket which enable versioning get wrong result when user marker

Added by joke lee 3 months ago. Updated about 2 months ago.

Status:
Pending Backport
Priority:
High
Assignee:
-
Target version:
Start date:
09/22/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
jewel luminous
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

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/">
<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/">
<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

Copied to rgw - Backport #21939: luminous: list bucket which enable versioning get wrong result when user marker In Progress
Copied to rgw - Backport #21954: jewel: list bucket which enable versioning get wrong result when user marker New

History

#1 Updated by joke lee 3 months ago

#2 Updated by Casey Bodley about 2 months ago

  • Project changed from Ceph to rgw
  • Category deleted (radosgw)
  • Status changed from New to Testing
  • Priority changed from Normal to High
  • Backport set to jewel luminous

on merge and backport, we'll also need to merge/backport the s3test at https://github.com/ceph/s3-tests/pull/189

#3 Updated by Yuri Weinstein about 2 months ago

joke lee wrote:

this fix the problom https://github.com/ceph/ceph/pull/17934

merged

#4 Updated by Yehuda Sadeh about 2 months ago

  • Status changed from Testing to Pending Backport

#5 Updated by Karol Mroz about 2 months ago

  • Copied to Backport #21939: luminous: list bucket which enable versioning get wrong result when user marker added

#6 Updated by Nathan Cutler about 2 months ago

  • Copied to Backport #21954: jewel: list bucket which enable versioning get wrong result when user marker added

#7 Updated by Ken Dreyer about 2 months ago

  • Target version changed from v10.2.10 to v13.0.0

Also available in: Atom PDF