[CDRIVER-2142] No URI error specified if authSource is not "$external" for GSSAPI and X509 Created: 25/Apr/17  Updated: 28/Oct/23  Resolved: 25/Apr/17

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.7.0
Fix Version/s: 1.7.0

Type: Bug Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Jeremy Mikola
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.



 Comments   
Comment by Hannes Magnusson [ 25/Apr/17 ]

Err. The commit message cited CDRIVER-2141

But the commit is here:
https://github.com/mongodb/mongo-c-driver/commit/ea6d8eea992fc0209a97377f02138ffc85dce585

Comment by Jeremy Mikola [ 25/Apr/17 ]

https://github.com/mongodb/mongo-c-driver/pull/435

Generated at Wed Feb 07 21:14:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.