diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-10-29 13:27:15 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-11-10 15:38:30 +0000 |
commit | ac1651c86db336a0d709dc44c165ace1ab1c7cbe (patch) | |
tree | cd72a7df1db780f8a5b537419d010d647209b0db /apps | |
parent | e955240667e1242dc0ed6c2e7a3518327715ea71 (diff) | |
download | nextcloud-server-ac1651c86db336a0d709dc44c165ace1ab1c7cbe.tar.gz nextcloud-server-ac1651c86db336a0d709dc44c165ace1ab1c7cbe.zip |
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.php | 1 |
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 df13603de23..5b92b7baff6 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -84,6 +84,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(); |