summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-13 18:24:00 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-13 18:24:00 +0100
commit248c571c56b09ccabcc5a881500fd831be424d3c (patch)
tree8467ba4df17b6b986f9074398e6099d4de1acca0 /apps/dav
parent2344c8e07d90d698a3c63fa50ce955d980eb4bab (diff)
parentc3e4ced64a0bab8ea246906e035685a15b51e363 (diff)
downloadnextcloud-server-248c571c56b09ccabcc5a881500fd831be424d3c.tar.gz
nextcloud-server-248c571c56b09ccabcc5a881500fd831be424d3c.zip
Merge pull request #22331 from owncloud/dav-nonexisting-part
fix getNodeForPath for non existing part files
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/connector/sabre/objecttree.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/connector/sabre/objecttree.php b/apps/dav/lib/connector/sabre/objecttree.php
index a1796136c4e..505a42d4746 100644
--- a/apps/dav/lib/connector/sabre/objecttree.php
+++ b/apps/dav/lib/connector/sabre/objecttree.php
@@ -136,7 +136,7 @@ class ObjectTree extends \Sabre\DAV\Tree {
$mount = $this->fileView->getMount($path);
$storage = $mount->getStorage();
$internalPath = $mount->getInternalPath($absPath);
- if ($storage) {
+ if ($storage && $storage->file_exists($internalPath)) {
/**
* @var \OC\Files\Storage\Storage $storage
*/