distribution/registry/storage/driver/s3-aws
Milos Gajdos 5fa926a609
Enable pushing empty blobs
This is an edge case when we are trying to upload an empty chunk of data using
a MultiPart upload. As a result we are trying to complete the MultipartUpload
with an empty slice of `completedUploadedParts` which will always lead to 400
being returned from S3 See: https://docs.aws.amazon.com/sdk-for-go/api/service/s3/#CompletedMultipartUpload
Solution: we upload an empty i.e. 0 byte part as a single part and then append it
to the completedUploadedParts slice used to complete the Multipart upload.

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2023-03-27 10:11:07 +01:00
..
s3.go Enable pushing empty blobs 2023-03-27 10:11:07 +01:00
s3_test.go Merge pull request #3635 from milosgajdos/make-s3-driver-delete-faster 2022-11-04 16:56:41 +01:00
s3_v2_signer.go Fix gometalint errors 2019-02-04 16:01:04 -08:00