Skip to content

Commit bc8b2b1

Browse files
committed
make multipart composite by default
1 parent 99f4d3e commit bc8b2b1

File tree

1 file changed

+2
-3
lines changed
  • localstack-core/localstack/services/s3

1 file changed

+2
-3
lines changed

localstack-core/localstack/services/s3/models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def __init__(
435435
expires: Optional[datetime] = None,
436436
expiration: Optional[datetime] = None, # come from lifecycle
437437
checksum_algorithm: Optional[ChecksumAlgorithm] = None,
438-
checksum_type: Optional[ChecksumType] = ChecksumType.FULL_OBJECT,
438+
checksum_type: Optional[ChecksumType] = ChecksumType.COMPOSITE,
439439
encryption: Optional[ServerSideEncryption] = None, # inherit bucket
440440
kms_key_id: Optional[SSEKMSKeyId] = None, # inherit bucket
441441
bucket_key_enabled: bool = False, # inherit bucket
@@ -548,8 +548,7 @@ def complete_multipart(self, parts: CompletedPartList):
548548

549549
multipart_etag = f"{object_etag.hexdigest()}-{len(parts)}"
550550
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
553552
if has_checksum:
554553
checksum_value = f"{base64.b64encode(checksum_hash.digest()).decode()}-{len(parts)}"
555554
self.checksum_value = checksum_value

0 commit comments

Comments
 (0)