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
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-10-29 14:27:15 +0300
committerJulius Härtl <jus@bitgrid.net>2021-11-04 13:34:13 +0300
commit4e57146617c4b851aae4b80396c192203696c8f1 (patch)
tree75fcc23894f1c294c543247c43ad7634ec0a8e8a /apps
parentac4cad4330d0d58c36e3393ac1ce18d08f6acb5d (diff)
Use unique combination of hostname/bucket/key for external storages
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-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();