Client constructor should throw if mongoc_uri_new_with_error fails

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 3.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              A. Jesse Jiryu Davis
              Reporter:
              Matt Broadstone
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: