diff options
author | Louis Chemineau <louis@chmn.me> | 2024-03-14 11:13:22 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-03-14 11:18:36 +0100 |
commit | 8205de75c7cfe524fd01715bfba83e16266ac03d (patch) | |
tree | cb0d149cdb6756e6917fa0cb5b98814a87f43141 /lib | |
parent | d3da21b10a068b8d72fc6b8a67f6fd143b2ad604 (diff) | |
download | nextcloud-server-8205de75c7cfe524fd01715bfba83e16266ac03d.tar.gz nextcloud-server-8205de75c7cfe524fd01715bfba83e16266ac03d.zip |
fix(files): Do not throw an exception if the etag is not set in metadata
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/FilesMetadata/Model/FilesMetadata.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/FilesMetadata/Model/FilesMetadata.php b/lib/private/FilesMetadata/Model/FilesMetadata.php index 3de72357431..41ede3ef2d3 100644 --- a/lib/private/FilesMetadata/Model/FilesMetadata.php +++ b/lib/private/FilesMetadata/Model/FilesMetadata.php @@ -159,7 +159,7 @@ class FilesMetadata implements IFilesMetadata { public function getEtag(string $key): string { if (!array_key_exists($key, $this->metadata)) { - throw new FilesMetadataNotFoundException(); + return ''; } return $this->metadata[$key]->getEtag(); |