Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(files): Do not throw an exception if the etag is not set in metadata
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Mar 14, 2024
commit 8205de75c7cfe524fd01715bfba83e16266ac03d
2 changes: 1 addition & 1 deletion lib/private/FilesMetadata/Model/FilesMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down