@@ -2096,10 +2096,6 @@ def create_multipart_upload(
2096
2096
"Checksum algorithm provided is unsupported. Please try again with any of the valid types: [CRC32, CRC32C, SHA1, SHA256]"
2097
2097
)
2098
2098
2099
- # TODO: validate the checksum map between COMPOSITE and FULL_OBJECT
2100
- # get value
2101
- checksum_type = request .get ("ChecksumType" )
2102
-
2103
2099
# TODO: we're not encrypting the object with the provided key for now
2104
2100
sse_c_key_md5 = request .get ("SSECustomerKeyMD5" )
2105
2101
validate_sse_c (
@@ -2126,7 +2122,6 @@ def create_multipart_upload(
2126
2122
user_metadata = request .get ("Metadata" ),
2127
2123
system_metadata = system_metadata ,
2128
2124
checksum_algorithm = checksum_algorithm ,
2129
- checksum_type = checksum_type ,
2130
2125
encryption = encryption_parameters .encryption ,
2131
2126
kms_key_id = encryption_parameters .kms_key_id ,
2132
2127
bucket_key_enabled = encryption_parameters .bucket_key_enabled ,
@@ -2151,7 +2146,6 @@ def create_multipart_upload(
2151
2146
2152
2147
if checksum_algorithm :
2153
2148
response ["ChecksumAlgorithm" ] = checksum_algorithm
2154
- response ["ChecksumType" ] = checksum_type
2155
2149
2156
2150
add_encryption_to_response (response , s3_object = s3_multipart .object )
2157
2151
if sse_c_key_md5 :
@@ -2534,7 +2528,6 @@ def complete_multipart_upload(
2534
2528
# TODO: check this?
2535
2529
if s3_object .checksum_algorithm :
2536
2530
response [f"Checksum{ s3_object .checksum_algorithm .upper ()} " ] = s3_object .checksum_value
2537
- response ["ChecksumType" ] = s3_object .checksum_type
2538
2531
2539
2532
if s3_object .expiration :
2540
2533
response ["Expiration" ] = s3_object .expiration # TODO: properly parse the datetime
@@ -2655,7 +2648,6 @@ def list_parts(
2655
2648
response ["PartNumberMarker" ] = part_number_marker
2656
2649
if s3_multipart .object .checksum_algorithm :
2657
2650
response ["ChecksumAlgorithm" ] = s3_multipart .object .checksum_algorithm
2658
- response ["ChecksumType" ] = s3_multipart .checksum_type
2659
2651
2660
2652
return response
2661
2653
0 commit comments