Merge pull request #56778 from nextcloud/backport/56772/stable32

[stable32] feat(ObjectStore): Allow overriding arguments per bucket
This commit is contained in:
Andy Scherzinger 2025-12-02 08:50:02 +01:00 committed by GitHub
commit 8febf2971b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,6 +35,10 @@ trait S3ConnectionTrait {
throw new \Exception('Bucket has to be configured.');
}
if (isset($params['multibucket']) && $params['multibucket'] === true && isset($params['perBucket'][$params['bucket']])) {
$params = array_merge($params, $params['perBucket'][$params['bucket']]);
}
$this->id = 'amazon::' . $params['bucket'];
$this->test = isset($params['test']);