[GODRIVER-2620] Failure on Hostname Parsing for SRV Polling Created: 27/Oct/22 Updated: 28/Oct/23 Resolved: 28/Oct/22 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.11.0, 1.8.6, 1.9.3, 1.10.4 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Qingyang Hu | Assignee: | Qingyang Hu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Case: | (copied to CRM) | ||||
| Description |
|
In the investigation of HELP-38552, it turned out that the driver did not parse the SRV hostname correctly for any URI with a username and password. e.g, for a URI of mongodb+srv://<USER:PASS>@<HOST>/<PATH>, the hosts was set to <USER:PASS> instead of <HOST>. Therefore, the driver could not connect to the SRV server to get topology updates after the initial SRV call. The connecting error was not returned or logged, either. |
| Comments |
| Comment by Githook User [ 01/Nov/22 ] |
|
Author: {'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}Message:
Co-authored-by: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com> |
| Comment by Githook User [ 01/Nov/22 ] |
|
Author: {'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}Message:
Co-authored-by: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com> |
| Comment by Githook User [ 01/Nov/22 ] |
|
Author: {'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}Message:
Co-authored-by: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com> |
| Comment by Githook User [ 28/Oct/22 ] |
|
Author: {'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}Message:
Co-authored-by: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com> |