Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2142

No URI error specified if authSource is not "$external" for GSSAPI and X509

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.7.0
    • Affects Version/s: 1.7.0
    • Component/s: libmongoc
    • None

      When mongoc_uri_parse() ultimately defers to mongoc_uri_finalize_auth(), the latter function does not receive the error struct. If authSource happens to be set to something other than "$external", the function will return false without supplying a specific error message. This will result in mongoc_uri_new_with_error() returning NULL without filling the error struct.

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

              Created:
              Updated:
              Resolved: