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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 1.23.0
    • uri

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              ezra.chung@mongodb.com Ezra Chung
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: