Skip to content

Display correct error message if some self checks could not be performed due network timeout to overwrite.cli.url #52389

@Somebodyisnobody

Description

@Somebodyisnobody

Tested on Nextcloud 31.0.4.
My setup: Nextcloud standalone in a debian machine behind a reverse proxy.
Initial situation: During an upgrade I always block incoming requests (except my admin machine) via firewall on the reverse proxy. After the update I look for the self check in /index.php/settings/admin/overview for errors and warnings. Only after resolving the issues I proceed with unblocking firewall traffic.

Nextcloud's self check makes a request to the URL configured in overwrite.cli.url (config.php) and looks for an HSTS header in the response. In my case this request ran into a timeout. Nextcloud displayed me then the error message that I found here:

$msg .= $this->l10n->t('- The `Strict-Transport-Security` HTTP header is malformed: `%s`. For enhanced security, it is recommended to enable HSTS.', [$transportSecurityValidity]) . "\n";

HSTS is correctly set up on my reverse proxy. But as the Nextcloud instance could not reach the proxy it showed me this warning. I expect Nextcloud to display me an error message like "Some tests could not be performed due to a network timeout to the configured public address <address> configured in the config.php"

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions