[CSHARP-2459] Do not output port in ToString() for '+srv' urls Created: 20/Dec/18 Updated: 28/Oct/23 Resolved: 31/Jan/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.8.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Ethan [X] | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Description |
|
Reproduction steps: 1) Create a MongoUrl or use the MongoUrlBuilder 2) take that url and get the string version of it with ToString() or any way of getting the raw connection string Actual: outputs a port in the connection string Expected: no port should exist in the connection string
This mainly causes issues when parsing the connection string because there is validation to prevent ports when +srv is specified
|
| Comments |
| Comment by Githook User [ 31/Jan/19 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Githook User [ 31/Jan/19 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Githook User [ 31/Jan/19 ] |
|
Author: {'name': 'Ethan Celletti', 'email': 'ECelletti@SciSolutions.com'}Message: |
| Comment by Githook User [ 31/Jan/19 ] |
|
Author: {'name': 'Ethan Celletti', 'email': 'Gekctek@Gmail.com', 'username': 'Gekctek'}Message: Having an issue with turning a mongourl to as string then re-parsing it. There is validation on parsing that the port cant be defined with '+srv' but the ToString() outputs the port |
| Comment by Ethan [X] [ 20/Dec/18 ] |
|
Github PR |