Project

General

Profile

Actions

Bug #47527

closed

Ceph returns s3 incompatible xml response for listMultipartUploads

Added by Yatharth Sharma over 3 years ago. Updated over 1 year ago.

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

100%

Source:
Tags:
aws,s3, radosgw
Backport:
octopus pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi,

Ceph xml for listMultipartUploads response is not compatible with s3

`ListMultipartUploadsResult.Prefix` should just be `Prefix` and
`CommonPrefixes.Prefix` should just be `Prefix`

```

<ListMultipartUploadsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/&quot;>
<Bucket>tes-20200918t022453-pnmkqpyi7mkvr0x</Bucket>

<ListMultipartUploadsResult.Prefix>1/b</ListMultipartUploadsResult.Prefix>

<CommonPrefixes>
<CommonPrefixes.Prefix>1/bb/</CommonPrefixes.Prefix><CommonPrefixes.Prefix>1/bbb/</CommonPrefixes.Prefix>
</CommonPrefixes></ListMul
```

From AWS documentation - https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html

HTTP/1.1 200

<ListMultipartUploadsResult>
<Bucket>string</Bucket>
<KeyMarker>string</KeyMarker>
<UploadIdMarker>string</UploadIdMarker>
<NextKeyMarker>string</NextKeyMarker>
<Prefix>string</Prefix>
<Delimiter>string</Delimiter>
<NextUploadIdMarker>string</NextUploadIdMarker>
<MaxUploads>integer</MaxUploads>
<IsTruncated>boolean</IsTruncated>
<Upload>
<Initiated>timestamp</Initiated>
<Initiator>
<DisplayName>string</DisplayName>
<ID>string</ID>
</Initiator>
<Key>string</Key>
<Owner>
<DisplayName>string</DisplayName>
<ID>string</ID>
</Owner>
<StorageClass>string</StorageClass>
<UploadId>string</UploadId>
</Upload>
...
<CommonPrefixes>
<Prefix>string</Prefix>
</CommonPrefixes>
...
<EncodingType>string</EncodingType>
</ListMultipartUploadsResult>


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #53148: octopus: Ceph returns s3 incompatible xml response for listMultipartUploadsRejectedActions
Copied to rgw - Backport #53149: pacific: Ceph returns s3 incompatible xml response for listMultipartUploadsResolvedKonstantin ShalyginActions
Actions #1

Updated by Greg Farnum almost 3 years ago

  • Project changed from Ceph to rgw
  • Category deleted (rest-api)
Actions #2

Updated by Casey Bodley over 2 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to Casey Bodley
  • Backport set to octopus pacific
  • Pull request ID set to 43779
Actions #3

Updated by Casey Bodley over 2 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Backport Bot over 2 years ago

  • Copied to Backport #53148: octopus: Ceph returns s3 incompatible xml response for listMultipartUploads added
Actions #5

Updated by Backport Bot over 2 years ago

  • Copied to Backport #53149: pacific: Ceph returns s3 incompatible xml response for listMultipartUploads added
Actions #6

Updated by Backport Bot over 1 year ago

  • Tags changed from aws,s3, radosgw to aws,s3, radosgw backport_processed
Actions #7

Updated by Konstantin Shalygin over 1 year ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
  • Tags changed from aws,s3, radosgw backport_processed to aws,s3, radosgw
Actions

Also available in: Atom PDF