s3api includes Delimiter elements even when the delimiter query param is blank

Bug #1853663 reported by Tim Burke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Undecided
Unassigned

Bug Description

This is appropriate when handling a ListObjectVersions request, but not ListObjects or ListObjectsV2; AWS responds like

b'<?xml version="1.0" encoding="UTF-8"?>\n<ListVersionsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>1space-test</Name><Prefix>asdf</Prefix><KeyMarker></KeyMarker><VersionIdMarker></VersionIdMarker><MaxKeys>1000</MaxKeys><Delimiter></Delimiter><IsTruncated>false</IsTruncated></ListVersionsResult>'

b'<?xml version="1.0" encoding="UTF-8"?>\n<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>1space-test</Name><Prefix>asdf</Prefix><Marker></Marker><MaxKeys>1000</MaxKeys><EncodingType>url</EncodingType><IsTruncated>false</IsTruncated></ListBucketResult>'

b'<?xml version="1.0" encoding="UTF-8"?>\n<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Name>1space-test</Name><Prefix>asdf</Prefix><StartAfter></StartAfter><KeyCount>0</KeyCount><MaxKeys>1000</MaxKeys><EncodingType>url</EncodingType><IsTruncated>false</IsTruncated></ListBucketResult>'

respectively.

Tags: s3api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Reviewed: https://review.opendev.org/c/openstack/swift/+/695780
Committed: https://opendev.org/openstack/swift/commit/f0b8790c126f69c736b50cc9d8631fe30db167e4
Submitter: "Zuul (22348)"
Branch: master

commit f0b8790c126f69c736b50cc9d8631fe30db167e4
Author: Tim Burke <email address hidden>
Date: Fri Nov 22 15:07:48 2019 -0800

    s3api: Fix blank delimiter handling

    Real AWS only includes an empty delimiter element when doing a
    version-aware listing.

    Change-Id: Id246a157c576eac93375be084ada3740f1e09793
    Closes-Bug: #1853663

Changed in swift:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/swift 2.28.0

This issue was fixed in the openstack/swift 2.28.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.