diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-10-29 14:27:15 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-06-10 20:03:14 +0300 |
commit | 71d59bc6fcf2d57fe9336e5d39a8f6a7766d501b (patch) | |
tree | 26f5c3f8bd42114e92d0355035ffc361331a4a95 | |
parent | cac6eed35a96b399a5a59f4d8e31c45f73ae958e (diff) |
Use unique combination of hostname/bucket/key for external storages
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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 c75a00850f8..0326801f25b 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -71,6 +71,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(); |