diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-10-29 14:27:15 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-11-10 18:38:31 +0300 |
commit | 2e804fb40b70ef9f76deab495cc3f2b91f139530 (patch) | |
tree | a1168bd3ac62f4d60440a61116c9d69eaacd1fae /apps/files_external | |
parent | c43c2409a6ca3d3add4dd33d5bcdf2649bae72a0 (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.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 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(); |