summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-04-24 09:00:38 +0200
committerGitHub <noreply@github.com>2019-04-24 09:00:38 +0200
commit38adda4a2bba0493e66b1568cd4f7f85aa081e3c (patch)
tree8246ebde799f1e9eb15180bfa6bd0fdc71d3b820 /apps/dav
parent402930521aab4bc1df74cf628faef3685bd45492 (diff)
parentc16d116fa6f27a199a7b483f91047c78dd6eddce (diff)
downloadnextcloud-server-38adda4a2bba0493e66b1568cd4f7f85aa081e3c.tar.gz
nextcloud-server-38adda4a2bba0493e66b1568cd4f7f85aa081e3c.zip
Merge pull request #15146 from nextcloud/fix/customer_properties_boom
Prefetching blows up if there are a lot of files.
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php7
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php4
2 files changed, 0 insertions, 11 deletions
diff --git a/apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php b/apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php
index c77a4d6be48..f3f685a8b9e 100644
--- a/apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php
+++ b/apps/dav/lib/Connector/Sabre/CustomPropertiesBackend.php
@@ -129,13 +129,6 @@ class CustomPropertiesBackend implements BackendInterface {
return;
}
- if ($node instanceof Directory
- && $propFind->getDepth() !== 0
- ) {
- // note: pre-fetching only supported for depth <= 1
- $this->loadChildrenProperties($node, $requestedProps);
- }
-
$props = $this->getProperties($node, $requestedProps);
foreach ($props as $propName => $propValue) {
$propFind->set($propName, $propValue);
diff --git a/apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php b/apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php
index 91973eeff5d..3b7bd859b9f 100644
--- a/apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/CustomPropertiesBackendTest.php
@@ -226,10 +226,6 @@ class CustomPropertiesBackendTest extends \Test\TestCase {
->method('getPath')
->will($this->returnValue('/dummypath/test.txt'));
- $rootNode->expects($this->once())
- ->method('getChildren')
- ->will($this->returnValue(array($nodeSub)));
-
$this->tree->expects($this->at(0))
->method('getNodeForPath')
->with('/dummypath')