diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-10-29 13:27:15 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-11-04 11:34:13 +0100 |
commit | 4e57146617c4b851aae4b80396c192203696c8f1 (patch) | |
tree | 75fcc23894f1c294c543247c43ad7634ec0a8e8a /apps/files_external/lib | |
parent | ac4cad4330d0d58c36e3393ac1ce18d08f6acb5d (diff) | |
download | nextcloud-server-4e57146617c4b851aae4b80396c192203696c8f1.tar.gz nextcloud-server-4e57146617c4b851aae4b80396c192203696c8f1.zip |
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/lib')
-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(); |