Merge pull request #22498 from owncloud/fedshare-testremote-after-404

Properly trigger testRemote after getting a 404 from remote fed share
This commit is contained in:
Thomas Müller 2016-02-18 14:24:55 +01:00
commit cdb1aea809
1 changed files with 3 additions and 0 deletions

View File

@ -252,6 +252,9 @@ class Storage extends DAV implements ISharedStorage {
if ($e->getCode() === 401 || $e->getCode() === 403) {
throw new ForbiddenException();
}
if ($e->getCode() === 404) {
throw new NotFoundException();
}
// throw this to be on the safe side: the share will still be visible
// in the UI in case the failure is intermittent, and the user will
// be able to decide whether to remove it if it's really gone