From 07c44189708b3d458381fbb8a4f7713629d77116 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 30 Sep 2026 22:30:59 +0200 Subject: [PATCH] fix: only use `unencrypted_size` if set to a value Resolves e2ee which cannot store unencrypted size displaying size `0 B` because the Cache entry is initialized always to `unencrypted_size = 0` in `cacheEntryFromData`. Signed-off-by: Ferdinand Thiessen --- 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 24c4566c25ce0..617f11825ae2e 100644 --- a/lib/private/Files/FileInfo.php +++ b/lib/private/Files/FileInfo.php @@ -174,7 +174,7 @@ public function getSize($includeMounts = true) { if ($includeMounts) { $this->updateEntryFromSubMounts(); - if ($this->isEncrypted() && isset($this->data['unencrypted_size'])) { + if ($this->isEncrypted() && ($this->data['unencrypted_size'] ?? 0) > 0) { return $this->data['unencrypted_size']; } else { return isset($this->data['size']) ? 0 + $this->data['size'] : 0;