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

Client constructor should throw if mongoc_uri_new_with_error fails

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None

      It is possible for mongoc_uri_new_with_error to return NULL, and we are completely ignoring this fact during construction of mongocxx::client. It's very unlikely that this would happen, as most of the paths that would return an error would be covered during construction of the mongoc_uri_t passed in, but we should throw nonetheless in the unlikely case that this does happen.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: