[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 But the commit is here: |
| Comment by Jeremy Mikola [ 25/Apr/17 ] |