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:
Vincent Petry 2016-06-06 11:34:18 +02:00
commit 6e7eb87c80
1 changed files with 3 additions and 0 deletions

View File

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