ExportXMLWordPrintableJSON

    • Hide

      DRIVERS-3162:
      Summary of necessary driver changes

      • No driver code changes are required. The spec already allows returned hostnames to be identical to the SRV hostname when the SRV hostname has three or more dot-separated parts; the new tests only verify this. Drivers that already implement the "additional domain level" rule for fewer-than-three parts need no change. For PyMongo, the underlying validation fix already landed in PYTHON-5288 (PyMongo 4.12.1, commits 86e221e and backport de0e233), so PyMongo passes the new tests as-is; the sync commits below only add the new spec test files.

      Commits for syncing spec/prose tests
      (and/or refer to an existing language POC if needed)

      • Spec tests: mongodb/specifications PR #1787, commit 268a28e adds initial-dns-seedlist-discovery/tests/replica-set/identical-hostnames-valid-three-parts.{yml,json} and identical-hostnames-valid-four-parts.{yml,json} (plus README SRV records and changelog entry).
      • PyMongo sync (branch DRIVERS-3162, not yet merged to master):
        • b7d4107a Add identical-hostnames-valid-three-parts.json and update test_dns.py
        • 710e0b3d Add identical-hostnames-valid-four-parts.json
      • Existing language POC: Go Driver PR #2685 (per Preston's 2026-11-02 comment, "everything looks good").

      Context for other referenced/linked tickets

      • PYTHON-5288 (Closed): the user-reported bug that motivated this ticket. PyMongo 4.12.0 incorrectly rejected mongodb+srv connection strings when an SRV record resolved to a hostname identical to the SRV hostname, even with three or more dot-separated parts (ConfigurationError: Invalid SRV host: return address is identical to SRV hostname). Fixed in 4.12.1.
      • This ticket is test-only ("Is this ticket only for tests? Yes"); no downstream team depends on it.
      Show
      DRIVERS-3162 : Summary of necessary driver changes No driver code changes are required. The spec already allows returned hostnames to be identical to the SRV hostname when the SRV hostname has three or more dot-separated parts; the new tests only verify this. Drivers that already implement the "additional domain level" rule for fewer-than-three parts need no change. For PyMongo, the underlying validation fix already landed in PYTHON-5288 (PyMongo 4.12.1, commits 86e221e and backport de0e233), so PyMongo passes the new tests as-is; the sync commits below only add the new spec test files. Commits for syncing spec/prose tests (and/or refer to an existing language POC if needed) Spec tests: mongodb/specifications PR #1787 , commit 268a28e adds initial-dns-seedlist-discovery/tests/replica-set/identical-hostnames-valid-three-parts.{yml,json} and identical-hostnames-valid-four-parts.{yml,json} (plus README SRV records and changelog entry). PyMongo sync (branch DRIVERS-3162 , not yet merged to master): b7d4107a Add identical-hostnames-valid-three-parts.json and update test_dns.py 710e0b3d Add identical-hostnames-valid-four-parts.json Existing language POC: Go Driver PR #2685 (per Preston's 2026-11-02 comment, "everything looks good"). Context for other referenced/linked tickets PYTHON-5288 (Closed): the user-reported bug that motivated this ticket. PyMongo 4.12.0 incorrectly rejected mongodb+srv connection strings when an SRV record resolved to a hostname identical to the SRV hostname, even with three or more dot-separated parts (ConfigurationError: Invalid SRV host: return address is identical to SRV hostname). Fixed in 4.12.1. This ticket is test-only ("Is this ticket only for tests? Yes"); no downstream team depends on it.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket was split from DRIVERS-3162, please see that ticket for a detailed description.

            Assignee:
            Sean Milligan
            Reporter:
            TPM Jira Automations Bot
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: