[SERVER-31965] Mongo Shell does not handle FQDN from SRV target values correctly Created: 14/Nov/17 Updated: 30/Oct/23 Resolved: 28/Nov/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.0-rc7, 3.7.1 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Marko Vojvodic | Assignee: | ADAM Martin (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | bkp | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v3.6
|
||||||||||||||||||||
| Sprint: | Platforms 2017-12-04 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
As part of CLOUDP-25143, I am adding SRV support to Atlas. When creating an SRV record on AWS Route 53, the record looks as follows:
When the shell builds the URI connection string from the target values of the SRV record, it appears as if it is not accounting for the trailing dot from the fully qualified domain names in the target DNS records:
We should remove the trailing dot from fully qualified domain names when parsing the target values for the DNS records. |
| Comments |
| Comment by Githook User [ 28/Nov/17 ] |
|
Author: {'name': 'ADAM David Alan Martin', 'username': 'adamlsd', 'email': 'adam.martin@10gen.com'}Message: (cherry picked from commit e76d1aa49891d48db5db546043f94bdcc9932414) |
| Comment by Githook User [ 28/Nov/17 ] |
|
Author: {'name': 'ADAM David Alan Martin', 'username': 'adamlsd', 'email': 'adam.martin@10gen.com'}Message: |
| Comment by Githook User [ 28/Nov/17 ] |
|
Author: {'name': 'ADAM David Alan Martin', 'username': 'adamlsd', 'email': 'adam.martin@10gen.com'}Message: The hostname provided by SRV records is a canonicalized FQDN ending (cherry picked from commit c2d309d23cf918e1ded8fc241a1c2108dd0e31d3) |
| Comment by Githook User [ 28/Nov/17 ] |
|
Author: {'name': 'ADAM David Alan Martin', 'username': 'adamlsd', 'email': 'adam.martin@10gen.com'}Message: The hostname provided by SRV records is a canonicalized FQDN ending |
| Comment by Spencer Jackson [ 21/Nov/17 ] |
|
The relevant code is located here: https://github.com/mongodb/mongo/blob/master/src/mongo/util/net/ssl_manager.cpp#L1318 |