URI validation should inform users that SRV URIs should not contain port numbers

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.23.0
    • Affects Version/s: None
    • Component/s: uri
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When a port number is included in an SRV URI, libmongoc raises the following error:

      Failed to parse MongoDB URI: 'mongodb+srv://xxx.yyy.mongodb.net:27017'. Invalid service name in URI.

      A more helpful error message would inform users that port numbers should not be included in SRV URIs.

              Assignee:
              Ezra Chung
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: