Skip to content

Commit

Permalink
Merge pull request #1779 from amenophis/fix-ssec-params
Browse files Browse the repository at this point in the history
Fix: AWS Copy SSE-C Options +  Send all options to copy instead of just params
  • Loading branch information
frankdejonge authored Apr 7, 2024
2 parents d640936 + 691dd9f commit 442b817
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/AsyncAwsS3/AsyncAwsS3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ class AsyncAwsS3Adapter implements FilesystemAdapter, PublicUrlGenerator, Checks
'Tagging',
'WebsiteRedirectLocation',
'ChecksumAlgorithm',
'CopySSECustomerAlgorithm',
'CopySSECustomerKey',
'CopySSECustomerKeyMD5',
'CopySourceSSECustomerAlgorithm',
'CopySourceSSECustomerKey',
'CopySourceSSECustomerKeyMD5',
];

/**
Expand Down
8 changes: 4 additions & 4 deletions src/AwsS3V3/AwsS3V3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ class AwsS3V3Adapter implements FilesystemAdapter, PublicUrlGenerator, ChecksumP
'Tagging',
'WebsiteRedirectLocation',
'ChecksumAlgorithm',
'CopySSECustomerAlgorithm',
'CopySSECustomerKey',
'CopySSECustomerKeyMD5',
'CopySourceSSECustomerAlgorithm',
'CopySourceSSECustomerKey',
'CopySourceSSECustomerKeyMD5',
];
/**
* @var string[]
Expand Down Expand Up @@ -438,7 +438,7 @@ public function copy(string $source, string $destination, Config $config): void
$this->bucket,
$this->prefixer->prefixPath($destination),
$this->visibility->visibilityToAcl($visibility ?: 'private'),
$this->createOptionsFromConfig($config)['params']
$this->createOptionsFromConfig($config)
);
} catch (Throwable $exception) {
throw UnableToCopyFile::fromLocationTo($source, $destination, $exception);
Expand Down

0 comments on commit 442b817

Please sign in to comment.