aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-04-09 15:04:35 +0200
committerAndy Scherzinger <info@andy-scherzinger.de>2025-04-23 23:02:18 +0200
commite436f87496bf14e5b84ede654a4691f4b84681c4 (patch)
tree93b2af46b0ca482c0597160e500e65a87c39249b
parenta6cc47a8971b63279483e42b624dd1cd9530ae1a (diff)
downloadnextcloud-server-backport/52073/stable31.tar.gz
nextcloud-server-backport/52073/stable31.zip
fix: fix preloading files with no custom propertiesbackport/52073/stable31
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/dav/lib/DAV/CustomPropertiesBackend.php5
1 files changed, 4 insertions, 1 deletions
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 = [];