mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #16711 from owncloud/files-invalidchar400
Translate invalid path exception to sabre exception for files
This commit is contained in:
commit
7de2940b42
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue