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

Do not allow empty string for username

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0-RC1, 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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().

            Assignee:
            andreas.braun@mongodb.com Andreas Braun
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: