Implicitly enable TLS for tlsInsecure and tlsCertificateKeyFilePassword URI opts

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.15.3
    • Affects Version/s: 1.15.0
    • Component/s: tls, uri
    • None
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      mongoc_uri_get_tls does not consider the MONGOC_URI_TLSINSECURE and MONGOC_URI_TLSCERTIFICATEKEYFILEPASSWORD constants. This was likely an oversight in the PR for CDRIVER-2869.

      The Unified URI options spec leaves the decision to each driver to implicitly enable TLS if any related options are specified. The C driver has historically done so (even for the "insecure" options like ignoring certs), so it should be a quick fix to add these two options to the list of those considered.

      The docs for mongoc_uri_get_tls can also be improved to clarify that the function returns true if any TLS option is specified.

            Assignee:
            Kevin Albertson
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: