Closed mikeys closed 7 years ago
Hi @mikeys,
Thanks for opening this issue and writing a possible fix. We are currently working on reproducing and fixing this issue.
I will get back to you soon with any update on this.
Cheers
@nicolas2bert 👍 Note that the above works with actual AWS S3 fine.
Fixed by #802
Description
On multipart upload: the upload fails when using non sequential part numbers.
Based on AWS S3 specification: "Amazon S3 creates an object by concatenating the parts in ascending order based on the part number"
That means that potentially you can have part numbers which are non sequential (1, 2, 3, 7) and as long as the Complete Multipart Upload request lists those parts, everything should still work correctly (the concatenation of the parts is made based on the part number ascending order).
Specifically (in
lib/api/completeMultipartUpload.js
):The above seems incorrect since it requires the
partNumber
to go sequentially starting from 1.Steps to reproduce the issue
upload.add_part
, assign larger but non sequential part numbers to sequential file parts (1: file_part1, 3: file_part2, 4: file_part3).InvalidPart
error is raised.Expected result: Upload should be successful - concatenation of parts based on ascending part number order.
Additional information: (Node.js version, Docker version, etc)
Node.js v6.9.5 without Docker.
Possible fix