[Pkg-owncloud-commits] [owncloud] 02/16: Check for file existence before doing a DAV copy
David Prévot
taffit at moszumanska.debian.org
Thu Oct 22 15:55:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 5849a2de8c60aae55c2471d75aa955c4e5e66d93
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Mon Aug 31 15:14:10 2015 +0200
Check for file existence before doing a DAV copy
Partial backport of f39fcbc250c3817e0c62627b127cf31a70dca36a from 8.1
---
lib/private/connector/sabre/objecttree.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php
index 14a55b5..0fbf5dc 100644
--- a/lib/private/connector/sabre/objecttree.php
+++ b/lib/private/connector/sabre/objecttree.php
@@ -192,6 +192,9 @@ class ObjectTree extends \Sabre\DAV\ObjectTree {
throw new \Sabre\DAV\Exception\ServiceUnavailable('filesystem not setup');
}
+ // this will trigger existence check
+ $this->getNodeForPath($source);
+
try {
if ($this->fileView->is_file($source)) {
$this->fileView->copy($source, $destination);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list