[SERVER-13867] Centralize validation of connection strings for server and tools Created: 07/May/14  Updated: 06/Dec/22  Resolved: 08/Oct/18

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

Type: Bug Priority: Major - P3
Reporter: Shaun Verch Assignee: Backlog - Service Architecture
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by TOOLS-6 mongodump crashes with malformed --ho... Closed
is depended on by TOOLS-145 Tools don't handle connection string ... Closed
Related
is related to CXX-2 Support for MongoDB URIs Closed
is related to TOOLS-6 mongodump crashes with malformed --ho... Closed
is related to TOOLS-145 Tools don't handle connection string ... Closed
Assigned Teams:
Service Arch
Operating System: ALL
Participants:

 Description   

The server does not allow the URI format that we have specified here: http://docs.mongodb.org/manual/reference/connection-string/

This is a priority for the C++ driver: https://jira.mongodb.org/browse/CXX-2

It also causes problems in the server: TOOLS-6

The places that accept "connection strings" or something similar are:

  • sh.addShard(...)
  • --host argument to tools
  • --host argument to mongo shell
  • <db address> argument to mongo shell
  • --configdb option on mongos
  • copydb command between hosts
  • internal mongod implementation of the "moveChunk" command (although I don't know how the bad name could get in here)


 Comments   
Comment by Mira Carey [ 08/Oct/18 ]

The tools are no longer based out of the server codebase, the shell takes uris, etc.

If there are desires for improved compat on particular items, feel free to file new tickets

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