fix(s3): allow Object Lock on versioned buckets and reject invalid checksums (#2024)

This commit is contained in:
安正超
2026-03-01 14:19:02 +08:00
committed by GitHub
parent d13c423d50
commit f42b155f59
5 changed files with 47 additions and 18 deletions
+10 -1
View File
@@ -29,8 +29,10 @@
# - Raw requests: Authenticated and anonymous
# - Conditional writes: If-Match/If-None-Match for PUT/Copy
# - Atomic read/write: Concurrent read/write consistency
# - Object Lock: Enable on versioned existing buckets
# - Checksum: SHA256 and CRC64NVME validation on PutObject
#
# Total: 376 tests
# Total: 379 tests
test_basic_key_count
test_bucket_create_naming_bad_short_one
@@ -456,3 +458,10 @@ test_atomic_dual_write_1mb
test_atomic_dual_write_4mb
test_atomic_dual_write_8mb
test_atomic_multipart_upload_write
# Object Lock tests
test_object_lock_put_obj_lock_enable_after_create
# Checksum validation tests
test_object_checksum_sha256
test_object_checksum_crc64nvme
+1 -5
View File
@@ -6,16 +6,12 @@
#
# Unimplemented features:
# - Bucket Logging: Access logging
# - Object Lock: Enable after create
# - Checksum: Full checksum validation
# - Checksum: POST Object form upload checksum
# - Bucket Ownership Controls
# Failed tests
test_bucket_create_delete_bucket_ownership
test_bucket_logging_owner
test_object_checksum_crc64nvme
test_object_checksum_sha256
test_object_lock_put_obj_lock_enable_after_create
test_post_object_upload_checksum
test_put_bucket_logging
test_put_bucket_logging_errors