From 3fe77a6d732ebfdcab6618da57d3c7bb003e12ac Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 14 Mar 2024 11:13:22 +0100 Subject: [PATCH] Do not throw an exception if the etag is not set in metadata Signed-off-by: Louis Chemineau --- lib/private/FilesMetadata/Model/FilesMetadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/FilesMetadata/Model/FilesMetadata.php b/lib/private/FilesMetadata/Model/FilesMetadata.php index 3de72357431ce..41ede3ef2d37d 100644 --- a/lib/private/FilesMetadata/Model/FilesMetadata.php +++ b/lib/private/FilesMetadata/Model/FilesMetadata.php @@ -159,7 +159,7 @@ public function setEditPermission(string $key, int $permission): void { public function getEtag(string $key): string { if (!array_key_exists($key, $this->metadata)) { - throw new FilesMetadataNotFoundException(); + return ''; } return $this->metadata[$key]->getEtag();