mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #24951 from owncloud/backport-24949-internal-server-error-in-sync-client-on-forbidden-directurl
[9.0] Catch the ForbiddenException to make sure it gets handled
This commit is contained in:
commit
6e7eb87c80
1 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
namespace OCA\DAV\Connector\Sabre;
|
||||
|
||||
use OCP\Files\ForbiddenException;
|
||||
use Sabre\DAV\Exception\NotFound;
|
||||
use Sabre\DAV\IFile;
|
||||
use \Sabre\DAV\PropFind;
|
||||
|
|
@ -257,6 +258,8 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
|
|||
}
|
||||
} catch (StorageNotAvailableException $e) {
|
||||
return false;
|
||||
} catch (ForbiddenException $e) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue