Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-687

Connection string parser doesn't return original hostname

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      The connection sting parser returns a list of hosts like this:

      [

      {host: "compass-data-sets-shard-00-02-e06dc.mongodb.net", port: 27017}

      ,

      {host: "compass-data-sets-shard-00-00-e06dc.mongodb.net", port: 27017}

      ,

      {host: "compass-data-sets-shard-00-01-e06dc.mongodb.net", port: 27017}

      ]

      but the initial hostname was compass-data-sets-e06dc.mongodb.net
      According to the specification, {{mongodb+srv://

      {hostname}

      .

      {domainname}

      /

      {options}

      }}
      for srv connection string it should be a single hostname. The original hostname should be returned after parsing, but it appears to be modified.

      Attachments

        Activity

          People

            Unassigned Unassigned
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: