-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Component/s: Initial DNS Seedlist Discovery
-
None
-
Needed
-
-
(copied to CRM)
New Summary
This ticket adds a new initial-dns-seedlist-discovery spec test to ensure drivers can connect with a "mongodb+srv://" URI that contains capital letters in the SRV hostname: https://github.com/mongodb/specifications/commit/82da02ba96d5d3ec4f48f6d2d4f2d0ebb1dce241
Although this test does not cover the bug in PYTHON-3800, it's still useful because it ensures drivers normalize the hostname before SRV+TXT lookup.
Original Summary
In HELP-47526 and PYTHON-3800, a bug was discovered where pymongo failed to connect to SRV hosts with capital letters. Specifically, in this section of the spec:
A driver MUST verify that the host names returned through SRV records have the same parent {domainname}. Drivers MUST raise an error and MUST NOT initiate a connection to any returned host name which does not share the same {domainname}.
The bug was that pymongo would normalize the {domainname} to lowercase but would not normalize the host names returned through SRV records.
The test should use a new SRV record that resolves to a host with capital letters:
Record TTL Class Port Target
_mongodb._tcp.test25.test.build.10gen.cc. 86400 IN SRV 27017 localhost.TEST.build.10gen.cc.
Then test that discovery works when connecting to both of the following URIs:
mongodb+srv://test25.test.build.10gen.cc mongodb+srv://test25.TEST.build.10gen.cc
- related to
-
PYTHON-3800 An error occurs when the SRV record contains uppercase letters.
- Closed
- split to
-
CDRIVER-4675 Add SRV test with capital letters in hostnames
- Backlog
-
CSHARP-4712 Add SRV test with capital letters in hostnames
- Backlog
-
CXX-2709 Add SRV test with capital letters in hostnames
- Backlog
-
RUBY-3289 Add SRV test with capital letters in hostnames
- Backlog
-
RUST-1697 Add SRV test with capital letters in hostnames
- Backlog
-
JAVA-5064 Add SRV test with capital letters in hostnames
- Backlog
-
NODE-5439 Add SRV test with capital letters in hostnames
- Blocked
-
GODRIVER-2897 Add SRV test with capital letters in hostnames
- Closed
-
MOTOR-1148 Add SRV test with capital letters in hostnames
- Closed
-
PHPLIB-1186 Add SRV test with capital letters in hostnames
- Closed
-
PYTHON-3822 Add SRV test with capital letters in hostnames
- Closed