From 6ab38be40e1535b62283d6bba4b9e9af0f864fbb Mon Sep 17 00:00:00 2001 From: Vincent Petry <pvince81@owncloud.com> Date: Wed, 3 Jun 2015 12:22:31 +0200 Subject: [PATCH] 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 82e1b55d763..58f16a2bd04 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); } -- GitLab