[DRIVERS-687] Connection string parser doesn't return original hostname Created: 03/Jul/19  Updated: 27/Oct/23  Resolved: 03/Jul/19

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Katherine Walker (Inactive) Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The connection sting parser returns a list of hosts like this:

[

{host: "compass-data-sets-shard-00-02-e06dc.mongodb.net", port: 27017}

,

{host: "compass-data-sets-shard-00-00-e06dc.mongodb.net", port: 27017}

,

{host: "compass-data-sets-shard-00-01-e06dc.mongodb.net", port: 27017}

]

but the initial hostname was compass-data-sets-e06dc.mongodb.net
According to the specification, {{mongodb+srv://

{hostname}

.

{domainname}

/

{options}

}}
for srv connection string it should be a single hostname. The original hostname should be returned after parsing, but it appears to be modified.


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