Malformed CompleteMultipartUpload request can 500

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

Bug Description

I was testing out some MPU workflows and got a bunch of 500s when I ran

   aws s3api complete-multipart-upload --bucket bucket --key key \
   --upload-id $UPLOADID --multipart-upload "Parts=[{ETag=$ETAG,PartNumber=1}]"

Trouble was that I didn't have ETAG set, but that still should be better-handled:

Jun 11 19:48:48 saio proxy-server: object of type 'NoneType' has no len():
Traceback (most recent call last):
  File "/vagrant/swift/swift/common/middleware/s3api/", line 292, in __call__
    resp = self.handle_request(req)
  File "/vagrant/swift/swift/common/middleware/s3api/", line 330, in handle_request
    res = handler(req)
  File "/vagrant/swift/swift/common/middleware/s3api/controllers/", line 60, in wrapped
    return func(self, req)
  File "/vagrant/swift/swift/common/middleware/s3api/controllers/", line 72, in check_container
    return func(self, req)
  File "/vagrant/swift/swift/common/middleware/s3api/controllers/", line 633, in POST
    if len(etag) != 32 or any(c not in '0123456789abcdef'
TypeError: object of type 'NoneType' has no len() (txn: tx0c4974454044483c9d9c2-005ee28aa0) (client_ip:

Tags: s3api
Changed in swift:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Submitter: "Zuul (22348)"
Branch: master

commit 4cba97d7b66d3267a3e899ce332989c897ae15a8
Author: Ashwin Nair <email address hidden>
Date: Tue Nov 22 15:22:50 2022 -0800

    Malformed CompleteMultipartUpload request should 400

    Closes-Bug: #1883172
    Change-Id: Ie44288976ac5a507c27bd175c5f56c9b0bd04fe0

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

This issue was fixed in the openstack/swift 2.31.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.