[SERVER-31437] Fix parsing of `mongo host/db` connect string Created: 06/Oct/17  Updated: 30/Oct/23  Resolved: 06/Oct/17

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 3.4.12, 3.6.0-rc0

Type: Bug Priority: Major - P3
Reporter: Sara Golemon Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-33059 Shell no longer accepts legacy connec... Closed
is duplicated by TOOLS-1939 Shell transposes DB and host in [db A... Closed
Related
related to SERVER-28072 Running a script using 'mongo' on rep... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Sprint: 20170925
Participants:

 Description   

SERVER-28072 got a piece of logic backwards leading to `mongo host/db` being parsed as `mongo db/host`. Reverse that logic to return to correct parsing.



 Comments   
Comment by Githook User [ 01/Feb/18 ]

Author:

{'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon', 'username': 'sgolemon'}

Message: SERVER-31437 Fix parsing of host/db connect string

(cherry picked from commit be9f8cd19c1d3fa7b0fea18c965cd9964fc7ed68)
Branch: v3.4
https://github.com/mongodb/mongo/commit/88e8afb9f01b7e8322537eaab2a30e2834b04eaa

Comment by Sara Golemon [ 01/Feb/18 ]

Fixes SERVER-33059

Comment by Githook User [ 06/Oct/17 ]

Author:

{'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon', 'username': 'sgolemon'}

Message: SERVER-31437 Fix parsing of host/db connect string
Branch: master
https://github.com/mongodb/mongo/commit/be9f8cd19c1d3fa7b0fea18c965cd9964fc7ed68

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