fix(s3): expose request_checksum_calculation and response_checksum_validation

Fix https://github.com/nextcloud/server/issues/56077

This commit makes the configuration settings 'request_checksum_calculation' and 'response_checksum_validation' of the S3Client from the AWS SDK for PHP configurable.

Signed-off-by: Fiehe Christoph  <c.fiehe@eurodata.de>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Fiehe Christoph 2025-10-29 11:48:16 +01:00 committed by Daniel Kesselberg
parent da13836617
commit b87add2711
No known key found for this signature in database
GPG key ID: 4A81C29F63464E8F

View file

@ -119,6 +119,14 @@ trait S3ConnectionTrait {
$options['endpoint'] = $base_url;
}
if (isset($this->params['request_checksum_calculation'])) {
$options['request_checksum_calculation'] = $this->params['request_checksum_calculation'];
}
if (isset($this->params['response_checksum_validation'])) {
$options['response_checksum_validation'] = $this->params['response_checksum_validation'];
}
if ($this->getProxy()) {
$options['http']['proxy'] = $this->getProxy();
}