Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4437

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

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

      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@mongodb.com Ezra Chung
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: