summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-12-16 14:44:28 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-12-16 14:44:28 +0100
commit66c0f4eb5967de6d945a3f3a6266a4cef69e0342 (patch)
treef4d03bbaecf47d555c5b0a54b37684fdb07fb76c /apps/dav
parentaa6230e389b9756fc4cdb0e6b382281a762ddf74 (diff)
downloadnextcloud-server-66c0f4eb5967de6d945a3f3a6266a4cef69e0342.tar.gz
nextcloud-server-66c0f4eb5967de6d945a3f3a6266a4cef69e0342.zip
Use name of ICollection for exception message
* fixes #21230
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 2e9c1b9916c..809d202aea4 100644
--- a/apps/dav/lib/connector/sabre/objecttree.php
+++ b/apps/dav/lib/connector/sabre/objecttree.php
@@ -190,7 +190,7 @@ class ObjectTree extends \Sabre\DAV\Tree {
$targetNodeExists = $this->nodeExists($destinationPath);
$sourceNode = $this->getNodeForPath($sourcePath);
if ($sourceNode instanceof \Sabre\DAV\ICollection && $targetNodeExists) {
- throw new \Sabre\DAV\Exception\Forbidden('Could not copy directory ' . $sourceNode . ', target exists');
+ throw new \Sabre\DAV\Exception\Forbidden('Could not copy directory ' . $sourceNode->getName() . ', target exists');
}
list($sourceDir,) = \Sabre\HTTP\URLUtil::splitPath($sourcePath);
list($destinationDir,) = \Sabre\HTTP\URLUtil::splitPath($destinationPath);