Merge pull request #16711 from owncloud/files-invalidchar400
Translate invalid path exception to sabre exception for files
This commit is contained in:
commit
7de2940b42
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue