Browse Source
always set Key field in `headObject`
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/29220/head
Robin Appelman
4 years ago
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with
3 additions and
1 deletions
-
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(); |
|
|
|
|