Depending on the outcome of CDRIVER-3012, we may want to raise an error if an empty string is received for the username URI option. This is assuming that there is no valid use case for authenticating against the server with an empty username.
If libmongoc ends up rejecting an empty username during URI parsing and perhaps also in mongoc_uri_set_username(), this may not require any work in the PHP driver. Alternatively, libmongoc may decide that an empty username is equivalent to a null username in terms of neither requiring authentication during mongoc_cluster_init().
- depends on
-
CDRIVER-3012 Authentication attempted after parsing empty username in URI
- Closed
- related to
-
PHPC-1347 Do not allow empty string for replicaSet
- Closed
-
PHPC-1647 Defer to libmongoc for cross-option URI validation
- Closed
- links to