fix(s3): return InvalidRange when CopySourceRange exceeds source object size (#2029)

This commit is contained in:
安正超
2026-03-01 17:46:31 +08:00
committed by GitHub
parent 8aecc7267b
commit e5e1010c31
3 changed files with 58 additions and 3 deletions

View File

@@ -34,8 +34,9 @@
# - CORS: Bucket-level CORS configuration, preflight, origin matching
# - HTTP: 100-continue, multipart abort, tagging in POST Object
# - DeleteObject: Proper NoSuchBucket for deleted buckets
# - Multipart Copy: InvalidRange when CopySourceRange exceeds source size
#
# Total: 393 tests
# Total: 394 tests
test_basic_key_count
test_bucket_create_naming_bad_short_one
@@ -486,3 +487,6 @@ test_100_continue
test_abort_multipart_upload_not_found
test_post_object_tags_authenticated_request
test_object_delete_key_bucket_gone
# Multipart copy range validation
test_multipart_copy_invalid_range

View File

@@ -224,7 +224,6 @@ test_list_buckets_paginated
test_list_multipart_upload
test_list_multipart_upload_owner
test_multipart_checksum_sha256
test_multipart_copy_invalid_range
test_multipart_copy_multiple_sizes
test_multipart_copy_versioned
test_multipart_get_part