Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1751

Weird error message for mismatched SRV domain

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      I configured `test1.mdb.bsdpower.com` with two SRV records:

      • hhhh
      • foo.test1.mdb.bsdpower.com

      The first one is meant to be rejected by the driver, however the message the driver produces is as follows:

      irb(main):001:0> a=Mongo::Client.new('mongodb+srv://test1.mdb.bsdpower.com')
      
      Mongo::Error::MismatchedDomain (Parent domain name in SRV record result (hhhh) does not match that of the hostname (["mdb", "bsdpower", "com"]))
      

      It should be something along the lines of "SRV record `hhhh` must be a subdomain of `mdb.bsdpower.com` but is not".

            Assignee:
            Unassigned Unassigned
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: