diff options
author | Roeland Douma <rullzer@users.noreply.github.com> | 2016-02-29 11:26:42 +0100 |
---|---|---|
committer | Roeland Douma <rullzer@users.noreply.github.com> | 2016-02-29 11:26:42 +0100 |
commit | 256c2cd705da489785f6b994612e192a6ae7413c (patch) | |
tree | da8657682459b6f9c7bd8cc3b94631e11c7ab138 /apps | |
parent | 0df34d96e0d106b9dbf07b1c3702563978cc4259 (diff) | |
parent | 2bc01e7b42422a120b5c2d0d59c328c8d8779014 (diff) | |
download | nextcloud-server-256c2cd705da489785f6b994612e192a6ae7413c.tar.gz nextcloud-server-256c2cd705da489785f6b994612e192a6ae7413c.zip |
Merge pull request #22630 from owncloud/stable8.1-fedshare-testremote-after-404
[stable8.1] Properly trigger testRemote after getting a 404 from remote fed share
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/external/storage.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php index b357bf3b7f6..6e59555cc48 100644 --- a/apps/files_sharing/lib/external/storage.php +++ b/apps/files_sharing/lib/external/storage.php @@ -250,6 +250,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 |