diff options
author | Robin Appelman <robin@icewind.nl> | 2021-10-15 16:23:39 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-10-26 14:44:25 +0200 |
commit | 4bc357d1ceea39789eabb12ef530a8697116d1dc (patch) | |
tree | f3586e149a0323363c11b9feab1fd6a45125c635 /apps/files_external | |
parent | 06b59b500214af35ad7076bb0077fc2231f90c0f (diff) | |
download | nextcloud-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.php | 4 |
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(); |