[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:
Related
Case:

 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: GODRIVER-2620 Fix hostname parsing for SRV polling. (#1112)

Co-authored-by: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com>
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
Branch: release/1.10
https://github.com/mongodb/mongo-go-driver/commit/861364b2ec885826130592c239524bdd09af5026

Comment by Githook User [ 01/Nov/22 ]

Author:

{'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}

Message: GODRIVER-2620 Fix hostname parsing for SRV polling. (#1112)

Co-authored-by: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com>
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
Branch: release/1.9
https://github.com/mongodb/mongo-go-driver/commit/fd3b03006482b231aefac143a0d2e25b85236543

Comment by Githook User [ 01/Nov/22 ]

Author:

{'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}

Message: GODRIVER-2620 Fix hostname parsing for SRV polling. (#1112)

Co-authored-by: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com>
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
Branch: release/1.8
https://github.com/mongodb/mongo-go-driver/commit/2952197df8a3bca314888e855067c0d64e3c2ffa

Comment by Githook User [ 28/Oct/22 ]

Author:

{'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}

Message: GODRIVER-2620 Fix hostname parsing for SRV polling. (#1112)

Co-authored-by: Preston Vasquez <24281431+prestonvasquez@users.noreply.github.com>
Co-authored-by: Kevin Albertson <kevin.albertson@10gen.com>
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/e4853fbfafb698453919ca083d1b3beddd53f75c

Generated at Thu Feb 08 08:39:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.