From 940b5e8f0a0eaf2092a870bfa2ed48ed90a26a7e Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 22 Jun 2022 17:27:09 +0200 Subject: [PATCH] Fix metadata extraction The metadata extraction only happens when the size is not equal to 0, but due to a regression in FileInfo the size is always zero. This fix the regression. Signed-off-by: Carl Schwan --- lib/private/Files/FileInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/FileInfo.php b/lib/private/Files/FileInfo.php index 5912eefcf9c8d..7a984429d1f31 100644 --- a/lib/private/Files/FileInfo.php +++ b/lib/private/Files/FileInfo.php @@ -101,7 +101,7 @@ public function __construct($path, $storage, $internalPath, $data, $mount, $owne $this->data = $data; $this->mount = $mount; $this->owner = $owner; - if (isset($this->data['unencrypted_size'])) { + if (isset($this->data['unencrypted_size']) && $this->data['unencrypted_size'] !== 0) { $this->rawSize = $this->data['unencrypted_size']; } else { $this->rawSize = $this->data['size'] ?? 0;