From dd2519b150dfbb1415677e4b78d1aef4ea80cf45 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 7 Oct 2016 13:24:37 +0200 Subject: owncloud: 9.1.1 (backported from Fedora, thanks James) --- owncloud-9.1.1-work-arround-nss-issue.patch | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 owncloud-9.1.1-work-arround-nss-issue.patch (limited to 'owncloud-9.1.1-work-arround-nss-issue.patch') diff --git a/owncloud-9.1.1-work-arround-nss-issue.patch b/owncloud-9.1.1-work-arround-nss-issue.patch new file mode 100644 index 0000000..37bc783 --- /dev/null +++ b/owncloud-9.1.1-work-arround-nss-issue.patch @@ -0,0 +1,46 @@ +--- ./settings/Controller/CheckSetupController.php.old 2016-10-07 13:08:05.373312550 +0200 ++++ ./settings/Controller/CheckSetupController.php 2016-10-07 13:11:14.959280009 +0200 +@@ -94,8 +94,8 @@ class CheckSetupController extends Contr + + try { + $client = $this->clientService->newClient(); +- $client->get('https://www.owncloud.org/'); +- $client->get('http://www.owncloud.org/'); ++ $client->get('https://owncloud.org/'); ++ $client->get('http://owncloud.org/'); + return true; + } catch (\Exception $e) { + return false; +@@ -191,13 +191,13 @@ class CheckSetupController extends Contr + if(strpos($versionString, 'NSS/') === 0) { + try { + $firstClient = $this->clientService->newClient(); +- $firstClient->get('https://www.owncloud.org/'); ++ $firstClient->get('https://api.owncloud.com/'); + + $secondClient = $this->clientService->newClient(); +- $secondClient->get('https://owncloud.org/'); ++ $secondClient->get('https://apps.owncloud.com/'); + } catch (ClientException $e) { + if($e->getResponse()->getStatusCode() === 400) { +- return (string) $this->l10n->t('cURL is using an outdated %s version (%s). Please update your operating system or features such as %s will not work reliably.', ['NSS', $versionString, $features]); ++ return (string) $this->l10n->t('cURL is using %s version (%s). There may be an issue with features such as %s, this is expected to fixed in the RHEL7.3 milestone - bz#1241172', ['NSS', $versionString, $features]); + } + } + } +--- ./lib/private/OCSClient.php.old 2016-10-07 13:11:45.206434361 +0200 ++++ ./lib/private/OCSClient.php 2016-10-07 13:13:50.509073781 +0200 +@@ -346,7 +346,12 @@ class OCSClient { + $tmp = $data->data->content; + $app = []; + if (isset($tmp->downloadlink)) { +- $app['downloadlink'] = (string)$tmp->downloadlink; ++ if (preg_match("/apps\.owncloud\.com/", (string)$tmp->downloadlink)) { ++ $downloadURL = preg_replace("/apps\.owncloud\.com/", "api.owncloud.com", (string)$tmp->downloadlink); ++ } else { ++ $downloadURL = (string)$tmp->downloadlink; ++ } ++ $app['downloadlink'] = $downloadURL; + } else { + $app['downloadlink'] = ''; + } -- cgit