Skip to content

Commit 181b443

Browse files
author
Kent Delante
committed
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 <kent.delante@proton.me>
1 parent 2e86293 commit 181b443

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_external/lib/Lib/Storage/AmazonS3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ private function batchDelete(?string $path = null): bool {
267267
$connection->deleteObjects([
268268
'Bucket' => $this->bucket,
269269
'Delete' => [
270+
'Quiet' => true,
270271
'Objects' => array_map(fn (array $object) => [
271-
'ETag' => $object['ETag'],
272272
'Key' => $object['Key'],
273273
], $objects['Contents'])
274274
]

0 commit comments

Comments
 (0)