Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1647

Defer to libmongoc for cross-option URI validation

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.13.0
    • Affects Version/s: None
    • Component/s: None
    • None

      CDRIVER-3723 will introduce a mongoc_client_new_from_uri_with_error method that will take a mongoc_uri_t and validate it before constructing a client. This can then replace our usage of mongoc_client_new_from_uri, which has no error reporting. URI options applied from SRV records will also be validated, which will allow exceptions to be reported upon Manager construction instead of the first instance of server selection.

      Additionally, it will allow us to delete our own "finalize" functions, which were copied from libmongoc's private API:

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: