Skip to content

Error message hidden when connecting to host with incorrect hostname in cert #8

Description

@gpvos

Actions to reproduce:

You connect to an HTTPS host, say example.com, that doesn't have the hostname you are using in its certificate (for example the certificate only mentions www.example.com).

Expected behaviour:

You get a clear error message that points you in the right direction, such as the internal LWP error message Can\'t connect to example.com:443 (hostname verification failed).

What actually happens:

You get a generic error like The URL "https://example.com/nc/remote.php/dav" is not DAV enabled or not accessible., which does not give any hint as to where the problem is.

Additional information:

The status code in this case is 500.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions