kopecmaciej / vi-mongo

MongoDB TUI manager designed to simplify data visualization and quick manipulation
https://vi-mongo.com
Apache License 2.0
24 stars 0 forks source link

Vi-Mongo does not support the full MongoDB Standard Connection String Format spec #23

Closed benjamindburke closed 2 days ago

benjamindburke commented 2 days ago

Relevant MongoDB spec: https://www.mongodb.com/docs/manual/reference/connection-string/#standard-connection-string-format

Description

I am attempting to connect to a sharded cluster using a URI compliant to MongoDB's Standard Connection String Format specification. My MongoDB URI follows the format:

mongodb://USER:PASSWORD@shard-0.mongodb.net:27017,shard-1.mongodb.net:27017,shard-2.mongodb.net:27017/admin?ssl=true&retryWrites=false&loadBalanced=false&replicaSet=replica-set-key-shard-0&readPreference=primary&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-1

Observed Behavior

When entering this valid MongoDB URI into the New Connection URL field, the following error occurs: Screenshot 2024-10-29 at 11 06 09 AM

Expected Behavior

When entering this valid MongoDB URI into the New Connection URL field, I should connect to the sharded cluster.

kopecmaciej commented 2 days ago

Great catch, thank you, I have already created a fix that should be merged today and released soon