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 #1

Updated by joke lee over 6 years ago

Actions #2

Updated by Casey Bodley over 6 years ago

  • Project changed from Ceph to rgw
  • Category deleted (22)
  • Status changed from New to 7
  • 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

Actions #3

Updated by Yuri Weinstein over 6 years ago

joke lee wrote:

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

merged

Actions #4

Updated by Yehuda Sadeh over 6 years ago

  • Status changed from 7 to Pending Backport
Actions #5

Updated by Anonymous over 6 years ago

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

Updated by Nathan Cutler over 6 years ago

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

Updated by Ken Dreyer over 6 years ago

  • Target version changed from v10.2.10 to v13.0.0
Actions #8

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF