Skip to content
Snippets Groups Projects
Unverified Commit 0e72d387 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Catch Request exception in testRemoteUrl


Else the background job fails hard if the remote has for example an
invalid certificate.

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent bf19431f
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ namespace OCA\Files_Sharing\External;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\RequestException;
use OC\Files\Storage\DAV;
use OC\ForbiddenException;
use OCA\Files_Sharing\ISharedStorage;
......@@ -280,6 +281,8 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage {
$returnValue = false;
} catch (ClientException $e) {
$returnValue = false;
} catch (RequestException $e) {
$returnValue = false;
}
$cache->set($url, $returnValue, 60*60*24);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment