summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-06-03 13:40:31 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-06-03 13:40:31 +0200
commit7de2940b423c4b1728558dc2b09cf04610ccb9ba (patch)
tree4c83c0b2268e91b75a2c5a764c04375977c6be82
parent500748725c46803ff2a0ec291db37a831322012c (diff)
parent6ab38be40e1535b62283d6bba4b9e9af0f864fbb (diff)
downloadnextcloud-server-7de2940b423c4b1728558dc2b09cf04610ccb9ba.tar.gz
nextcloud-server-7de2940b423c4b1728558dc2b09cf04610ccb9ba.zip
Merge pull request #16711 from owncloud/files-invalidchar400
Translate invalid path exception to sabre exception for files
-rw-r--r--lib/private/connector/sabre/directory.php2
1 files changed, 2 insertions, 0 deletions
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);
}