Merge pull request #24949 from owncloud/ee-1325-internal-server-error-in-sync-client-on-forbidden-directurl
Catch the ForbiddenException to make sure it gets handled
This commit is contained in:
commit
f584d5f03e
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,7 @@ namespace OCA\DAV\Connector\Sabre;
|
||||||
|
|
||||||
use OC\Files\View;
|
use OC\Files\View;
|
||||||
use OCA\DAV\Upload\FutureFile;
|
use OCA\DAV\Upload\FutureFile;
|
||||||
|
use OCP\Files\ForbiddenException;
|
||||||
use Sabre\DAV\Exception\Forbidden;
|
use Sabre\DAV\Exception\Forbidden;
|
||||||
use Sabre\DAV\Exception\NotFound;
|
use Sabre\DAV\Exception\NotFound;
|
||||||
use Sabre\DAV\IFile;
|
use Sabre\DAV\IFile;
|
||||||
|
@ -311,6 +312,8 @@ class FilesPlugin extends ServerPlugin {
|
||||||
}
|
}
|
||||||
} catch (StorageNotAvailableException $e) {
|
} catch (StorageNotAvailableException $e) {
|
||||||
return false;
|
return false;
|
||||||
|
} catch (ForbiddenException $e) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue