You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'NotHttpSuccess' => $this->l10n->t('The connection was successful but the response to the request was not 200'),
77
+
'HostNotFound' => $this->l10n->t('DNS error, the host is not known by the Collabora Online server'),
78
+
'WopiHostNotAllowed' => $this->l10n->t('The host for this request is not allowed to be used as a WOPI Host, this is likely a configuration issue in coolwsd.xml'),
79
+
'ConnectionAborted' => $this->l10n->t('The connection was aborted by the destination server'),
80
+
'CertificateValidation' => $this->l10n->t('The certificate of the response is invalid or otherwise not accepted'),
81
+
'SslHandshakeFail' => $this->l10n->t('Couldn’t establish an SSL/TLS connection'),
82
+
'MissingSsl' => $this->l10n->t('The response wasn’t using SSL/TLS contrary to expected'),
83
+
'NotHttps' => $this->l10n->t('HTTPS is expected to connect to Collabora Online as the WOPI host uses it. This is necessary to prevent mixed content errors.'),
84
+
'NoScheme' => $this->l10n->t('A scheme (http:// or https://) for the WOPI host URL must be specified'),
85
+
'Timeout' => $this->l10n->t('The request didn’t get a response within the time frame allowed'),
86
+
default => $this->l10n->t('Unknown error. Check the server logs of Collabora for more details.'),
87
+
};
88
+
89
+
if ($errorMessage) {
90
+
thrownew \Exception(
91
+
$this->l10n->t('The Collabora server could not properly reach the Nextcloud server.') . '' . $errorMessage
92
+
);
93
+
}
94
+
95
+
$output?->writeln('WOPI access was verified');
48
96
}
49
97
50
98
/**
@@ -59,4 +107,13 @@ public function autoConfigurePublicUrl(): void {
if ($latestVersion !== null && version_compare($latestVersion, $installedVersion, '>')) {
63
+
return SetupResult::warning($this->l10n->t('Collabora server version is out of date. Currently using %s, new version is available: %s', [$installedVersion, $latestVersion]));
0 commit comments