Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1614

Client constructed with independently defined SSL options always crashes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical - P2 Critical - P2
    • 3.3.1
    • 3.3.0
    • None
    • None

    Description

      The client constructor in mongocxx/client.cpp with the uri and options arguments always crashes if options has SSL options defined.

      This is because _impl is not initialized by the time the SSL options are set via libmongoc::client_set_ssl_opts, so _get_impl() will always throw an exception.

      We should move the SSL checks to below where the new client is initialized in the constructor, and possibly write tests to test this constructor.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            evgeni.dobranov@mongodb.com Evgeni Dobranov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: