[SERVER-39317] Make connection uri options case insensitive Created: 31/Jan/19  Updated: 29/Oct/23  Resolved: 05/Feb/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.8

Type: Bug Priority: Major - P3
Reporter: Alyson Cabral (Inactive) Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-12430 Docs for SERVER-39317: Make connectio... Closed
Duplicate
is duplicated by SERVER-35423 Connection string option names should... Closed
Related
is related to SERVER-34495 MongoDB Shell does not validate URI f... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2019-02-11
Participants:

 Description   

In the following test cases replset45 is a random string and there is no replica set members to connect to. 

Case 1 and 2 should be equivalent. 

1. mongo "mongodb://localhost:27017,localhost:27018,localhost:27019/?replicaSet=replset45"
Correct behavior
3.6.10 - Cannot reach any nodes for set replset45
4.0.5 - Cannot reach any nodes for set replset45

2. mongo "mongodb://localhost:27017,localhost:27018,localhost:27019/?replicaset=replset45"
3.6.10 - Connection success
4.0.5 - Connection success



 Comments   
Comment by Githook User [ 05/Feb/19 ]

Author:

{'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}

Message: SERVER-39317 Make uri options case insensitive
Branch: master
https://github.com/mongodb/mongo/commit/5fd66f15797c45c9bab7b59f9e55e0a2f7ad5cd0

Comment by Alyson Cabral (Inactive) [ 01/Feb/19 ]

Yeah, the drivers spec states that character cases should be ignored. 

Comment by Andy Schwerin [ 01/Feb/19 ]

Is it allowed to make them insensitive? Is it consistent with the drivers?

Generated at Thu Feb 08 04:51:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.