aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-10-15 16:23:39 +0200
committerRobin Appelman <robin@icewind.nl>2021-10-15 16:43:50 +0200
commit247e12da966aeceb833e8c60b833e089bee89f8a (patch)
treee307f749a77661fe13c0f04f98fe46b3dc791cdb /apps/files_external
parent55346b5d6cb24d11157b7a2e73a91fda85bb9af5 (diff)
downloadnextcloud-server-247e12da966aeceb833e8c60b833e089bee89f8a.tar.gz
nextcloud-server-247e12da966aeceb833e8c60b833e089bee89f8a.zip
always set Key field in `headObject`
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php
index 527a87aeb9a..aa0afac1543 100644
--- a/apps/files_external/lib/Lib/Storage/AmazonS3.php
+++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php
@@ -154,6 +154,9 @@ class AmazonS3 extends \OC\Files\Storage\Common {
}
}
+ if (is_array($this->objectCache[$key]) && !isset($this->objectCache[$key]["Key"])) {
+ $this->objectCache[$key]["Key"] = $key;
+ }
return $this->objectCache[$key];
}
@@ -345,7 +348,6 @@ class AmazonS3 extends \OC\Files\Storage\Common {
if ($object === false) {
return false;
}
- $object["Key"] = $path;
$stat = $this->objectToMetaData($object);
}
$stat['atime'] = time();