-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
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:
- depends on
-
CDRIVER-3723 Validate URI options on client/client pool creation
- Closed
- is depended on by
-
PHPC-2020 Validate loadBalanced URI array option
- Closed
-
PHPC-1900 Allow custom service names with srvServiceName URI option
- Closed
-
PHPC-1908 Allow limiting mongos servers with srvMaxHosts option
- Closed
-
PHPC-1950 Lift restriction on authSource without credentials when set in URI options array
- Closed
- is related to
-
PHPC-1288 Implement Unified URI Options
- Closed
-
PHPC-1346 Do not allow empty string for username
- Closed
-
PHPC-2021 Use mongoc_uri_finalize_options to validate mongoc_uri_t before client construction
- Closed
- related to
-
PHPC-1648 Ensure directConnection is validated when specified in URI options array
- Closed