From 17bc0df8cc4751e533f5ca246ddd2caf190a2c7b Mon Sep 17 00:00:00 2001 From: Kent Delante Date: Thu, 26 Feb 2026 15:28:08 +0800 Subject: [PATCH] fix: pass only object key to deleteObjects call Some S3-compatible object storage hosts don't like the ETag being included in the request and return a MalformedXML response. In the AWS API documentation, only the object key is required so just pass that in. Signed-off-by: Kent Delante --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 1e834811bd18f..fd45e6c35df9b 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -269,8 +269,8 @@ private function batchDelete(?string $path = null): bool { $connection->deleteObjects([ 'Bucket' => $this->bucket, 'Delete' => [ + 'Quiet' => true, 'Objects' => array_map(fn (array $object) => [ - 'ETag' => $object['ETag'], 'Key' => $object['Key'], ], $objects['Contents']) ]