diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-18 16:24:55 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-18 16:24:55 +0300 |
commit | cdb1aea809dd0b14271dd4e38ebdb18996dfbff2 (patch) | |
tree | d1f43dc684420c030250ce6853213bf9038dd844 | |
parent | 99d6a6b2305f96c7dfdfc0e0b27893e3ae0d0111 (diff) | |
parent | e1dbae14675a39d2678253eb628e55a674ce7b4d (diff) |
Merge pull request #22498 from owncloud/fedshare-testremote-after-404
Properly trigger testRemote after getting a 404 from remote fed share
-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 783eea43c62..ba7fba654a9 100644 --- a/apps/files_sharing/lib/external/storage.php +++ b/apps/files_sharing/lib/external/storage.php @@ -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 |