From 3ee4377345f7602083f3753e424be53eb870a0ae Mon Sep 17 00:00:00 2001 From: Julius Egelkraut Date: Fri, 5 Sep 2025 13:52:51 +0200 Subject: [PATCH] Fix: Add options to the HeadObject command while fetching FileMetaData to make the metaData, download and response functions work with SSE-C enabled as HeadObject requires the SSE-C headers --- src/AwsS3V3/AwsS3V3Adapter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AwsS3V3/AwsS3V3Adapter.php b/src/AwsS3V3/AwsS3V3Adapter.php index c0203352d..9b7364313 100644 --- a/src/AwsS3V3/AwsS3V3Adapter.php +++ b/src/AwsS3V3/AwsS3V3Adapter.php @@ -286,8 +286,8 @@ public function visibility(string $path): FileAttributes private function fetchFileMetadata(string $path, string $type): FileAttributes { - $arguments = ['Bucket' => $this->bucket, 'Key' => $this->prefixer->prefixPath($path)]; - $command = $this->client->getCommand('HeadObject', $arguments); + $options = ['Bucket' => $this->bucket, 'Key' => $this->prefixer->prefixPath($path)]; + $command = $this->client->getCommand('HeadObject', $options + $this->options); try { $result = $this->client->execute($command);