[Pkg-owncloud-commits] [owncloud] 274/457: Translate invalid path exception to sabre exception for files
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 6ab38be40e1535b62283d6bba4b9e9af0f864fbb
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Wed Jun 3 12:22:31 2015 +0200
Translate invalid path exception to sabre exception for files
---
lib/private/connector/sabre/directory.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/private/connector/sabre/directory.php b/lib/private/connector/sabre/directory.php
index 82e1b55..58f16a2 100644
--- a/lib/private/connector/sabre/directory.php
+++ b/lib/private/connector/sabre/directory.php
@@ -104,6 +104,8 @@ class Directory extends \OC\Connector\Sabre\Node
return $node->put($data);
} catch (\OCP\Files\StorageNotAvailableException $e) {
throw new \Sabre\DAV\Exception\ServiceUnavailable($e->getMessage());
+ } catch (\OCP\Files\InvalidPathException $ex) {
+ throw new InvalidPath($ex->getMessage());
} catch (LockedException $e) {
throw new FileLocked($e->getMessage(), $e->getCode(), $e);
}
--
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