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

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.23.0
    • None
    • 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

        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: