Merge pull request #16711 from owncloud/files-invalidchar400

Translate invalid path exception to sabre exception for files
This commit is contained in:
Thomas Müller 2015-06-03 13:40:31 +02:00
commit 7de2940b42
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}