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

XMLWordPrintableJSON

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

      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 Stam
              Reporter:
              Ethan [X]
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: