From 5c66fead676f38411935145fc87316cb56d5edfb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 9 Apr 2025 15:04:35 +0200 Subject: [PATCH] fix: fix preloading files with no custom properties Signed-off-by: Robin Appelman --- apps/dav/lib/DAV/CustomPropertiesBackend.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dav/lib/DAV/CustomPropertiesBackend.php b/apps/dav/lib/DAV/CustomPropertiesBackend.php index bc3c146875b..c41ecd8450e 100644 --- a/apps/dav/lib/DAV/CustomPropertiesBackend.php +++ b/apps/dav/lib/DAV/CustomPropertiesBackend.php @@ -350,7 +350,10 @@ class CustomPropertiesBackend implements BackendInterface { )), ) ->where($query->expr()->eq('parent', $query->createNamedParameter($node->getInternalFileId(), IQueryBuilder::PARAM_INT))) - ->andWhere($query->expr()->eq('p.userid', $query->createNamedParameter($this->user->getUID()))); + ->andWhere($query->expr()->orX( + $query->expr()->eq('p.userid', $query->createNamedParameter($this->user->getUID())), + $query->expr()->isNull('p.userid'), + )); $result = $query->executeQuery(); $propsByPath = [];