aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-04-09 15:04:35 +0200
committerRobin Appelman <robin@icewind.nl>2025-04-09 15:04:35 +0200
commit5c66fead676f38411935145fc87316cb56d5edfb (patch)
tree73ef6130e0a05f264e5db41946a1df89f81ce822
parentb82245ddea2db5bf1f2211199811454a5dbc0ee1 (diff)
downloadnextcloud-server-custom-properties-preload-negative.tar.gz
nextcloud-server-custom-properties-preload-negative.zip
fix: fix preloading files with no custom propertiescustom-properties-preload-negative
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 = [];