nextcloud/tests/lib/Files/ObjectStore
John Molakvoæ (skjnldsv) 22cba0f06a fix(s3): add Content-MD5 header for DeleteObjects to fix AWS SDK v3.339.0+ compatibility
AWS SDK PHP v3.339.0+ introduced a breaking change requiring the Content-MD5
header for DeleteObjects operations. This causes 'MissingContentMD5' errors when
using S3-compatible services like MinIO.

Add middleware to automatically calculate and inject the Content-MD5 header on
all DeleteObjects requests. This is applied universally at the S3ConnectionTrait
level, fixing both external storage (AmazonS3) and core ObjectStore (S3) classes.

Fixes: https://github.com/aws/aws-sdk-php/issues/3068
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2026-05-12 09:36:38 +00:00
..
AzureTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
FailDeleteObjectStore.php perf(s3): Expose pre-signed urls for S3 2025-12-09 11:21:35 +01:00
FailWriteObjectStore.php perf(s3): Expose pre-signed urls for S3 2025-12-09 11:21:35 +01:00
LocalTest.php chore: run rector 2025-07-01 22:45:52 +02:00
MapperTest.php fix: make bucket mapper work with new multi-object-store config 2025-08-28 17:51:25 +02:00
ObjectStoreScannerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
ObjectStoreStorageOverwrite.php chore: Add SPDX header 2024-05-13 17:41:36 +02:00
ObjectStoreStoragesDifferentBucketTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
ObjectStoreStoragesSameBucketTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
ObjectStoreStorageTest.php fix: make objectstore copy consistent with changed local storage behavior 2026-03-10 18:12:28 +01:00
ObjectStoreTestCase.php fix(tests): Ignore expected warning for s3 tests 2025-09-27 13:05:35 +02:00
PrimaryObjectStoreConfigTest.php refactor(preview): Cleanup the implementation of the new preview backend 2025-10-06 13:37:15 +02:00
S3ContentMd5MiddlewareTest.php fix(s3): add Content-MD5 header for DeleteObjects to fix AWS SDK v3.339.0+ compatibility 2026-05-12 09:36:38 +00:00
S3Test.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00
SwiftTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +01:00