Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-10-29 14:27:15 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-11-10 18:38:31 +0300
commit2e804fb40b70ef9f76deab495cc3f2b91f139530 (patch)
treea1168bd3ac62f4d60440a61116c9d69eaacd1fae /apps/files_external
parentc43c2409a6ca3d3add4dd33d5bcdf2649bae72a0 (diff)
Use unique combination of hostname/bucket/key for external storages
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php
index 827fd63d1d6..2c01a803840 100644
--- a/apps/files_external/lib/Lib/Storage/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -83,6 +83,7 @@ class AmazonS3 extends \OC\Files\Storage\Common {
public function __construct($parameters) {
parent::__construct($parameters);
$this->parseParams($parameters);
+ $this->id = 'amazon::external::' . md5($this->params['hostname'] . ':' . $this->params['bucket'] . ':' . $this->params['key']);
$this->objectCache = new CappedMemoryCache();
$this->directoryCache = new CappedMemoryCache();
$this->filesCache = new CappedMemoryCache();