summaryrefslogtreecommitdiffstats
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-26 14:44:25 +0200
commit4bc357d1ceea39789eabb12ef530a8697116d1dc (patch)
treef3586e149a0323363c11b9feab1fd6a45125c635 /apps/files_external
parent06b59b500214af35ad7076bb0077fc2231f90c0f (diff)
downloadnextcloud-server-4bc357d1ceea39789eabb12ef530a8697116d1dc.tar.gz
nextcloud-server-4bc357d1ceea39789eabb12ef530a8697116d1dc.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 e1383b8404c..ee9d35847f1 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();