Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2459

Do not output port in ToString() for '+srv' urls

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      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

       

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            Gekctek Ethan [X]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: