From 8d2378177c3fc73a4e90e8e265526dc44d9c6400 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Wed, 28 Jan 2026 15:11:09 +0100 Subject: [PATCH] fix(View): Handle ICacheEntry returned by FileInfo->getData() Signed-off-by: provokateurin --- lib/private/Files/View.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 4a9ef9f813814..d2c054848aec7 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -8,6 +8,7 @@ namespace OC\Files; use Icewind\Streams\CallbackWrapper; +use OC\Files\Cache\CacheEntry; use OC\Files\Mount\MoveableMount; use OC\Files\Storage\Storage; use OC\Files\Storage\Wrapper\Quota; @@ -1659,6 +1660,9 @@ public function putFileInfo($path, $data) { if ($data instanceof FileInfo) { $data = $data->getData(); } + if ($data instanceof CacheEntry) { + $data = $data->getData(); + } $path = Filesystem::normalizePath($this->fakeRoot . '/' . $path); /** * @var Storage $storage