]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use unique combination of hostname/bucket/key for external storages
authorJulius Härtl <jus@bitgrid.net>
Fri, 29 Oct 2021 11:27:15 +0000 (13:27 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 10 Nov 2021 15:38:30 +0000 (15:38 +0000)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files_external/lib/Lib/Storage/AmazonS3.php

index df13603de23140542e5a04caf984c5aeee1e54e5..5b92b7baff6c52052d29106d389e69f2c7783542 100644 (file)
@@ -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();