File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
localstack-core/localstack/services/s3 Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ def __init__(
435
435
expires : Optional [datetime ] = None ,
436
436
expiration : Optional [datetime ] = None , # come from lifecycle
437
437
checksum_algorithm : Optional [ChecksumAlgorithm ] = None ,
438
- checksum_type : Optional [ChecksumType ] = ChecksumType .FULL_OBJECT ,
438
+ checksum_type : Optional [ChecksumType ] = ChecksumType .COMPOSITE ,
439
439
encryption : Optional [ServerSideEncryption ] = None , # inherit bucket
440
440
kms_key_id : Optional [SSEKMSKeyId ] = None , # inherit bucket
441
441
bucket_key_enabled : bool = False , # inherit bucket
@@ -548,8 +548,7 @@ def complete_multipart(self, parts: CompletedPartList):
548
548
549
549
multipart_etag = f"{ object_etag .hexdigest ()} -{ len (parts )} "
550
550
self .object .etag = multipart_etag
551
- # TODO: manage checksum here!!! can be COMPOSITE or FULL_OBJECT
552
- # previous is COMPOSITE
551
+ # TODO: implement FULL_OBJECT checksum type
553
552
if has_checksum :
554
553
checksum_value = f"{ base64 .b64encode (checksum_hash .digest ()).decode ()} -{ len (parts )} "
555
554
self .checksum_value = checksum_value
You can’t perform that action at this time.
0 commit comments