diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php index 384e9f0ff58..3b8a71bfd86 100644 --- a/lib/private/Files/ObjectStore/S3ObjectTrait.php +++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php @@ -266,8 +266,11 @@ trait S3ObjectTrait { ]); } + /** + * @throws S3Exception|\Exception if there is an unhandled exception + */ public function objectExists($urn) { - return $this->getConnection()->doesObjectExist($this->bucket, $urn, $this->getSSECParameters()); + return $this->getConnection()->doesObjectExistV2($this->bucket, $urn, false, $this->getSSECParameters()); } public function copyObject($from, $to, array $options = []) {