[COMPASS-4053] Compass Connection String with "///" Seems to Lock it up Created: 20/Dec/19  Updated: 03/Oct/23  Resolved: 14/Jan/21

Status: Closed
Project: Compass
Component/s: Compass, Connectivity
Affects Version/s: 1.20.3, 1.20.4
Fix Version/s: 1.24.6

Type: Bug Priority: Minor - P4
Reporter: Felicia Hsieh Assignee: Rhys Howell
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2019-12-17 at 2.45.51 PM.png     PNG File Screen Shot 2019-12-20 at 5.54.27 PM.png     PNG File Screen Shot 2019-12-20 at 5.54.56 PM.png     PNG File Screen Shot 2019-12-20 at 5.55.08 PM.png     PNG File Screen Shot 2019-12-20 at 5.55.21 PM.png     PNG File Screen Shot 2020-12-17 at 11.17.21 AM.png    
Issue Links:
Related
is related to COMPASS-4202 New Connection string to non-existing... Closed
Epic Link: COMPASS-4362
Documentation Changes: Not Needed
Sprint: Iteration Vicuña, Iteration Tangerine

 Description   

 To reproduce in 1.20.3 (Stable):
-Change the Connection string to include "///" such as

mongodb:///localhost:27017/?readPreference=primaryPreferred&ssl=false

-Click the "Connect" button

-See screen try to connect but never give control back to user. Screen is grayed out with the thin, green progress line moving.

The database is very basic - no password, default port, localhost, etc.

 

When adding the 3rd slash to different connection strings, the connection string line is parsed inconsistently as shown by the error message generated (See images). I expected the 3rd slash to generate the same error message for all variations. Perhaps disable the "Connect" button if the parsing is not valid.



 Comments   
Comment by Rhys Howell [ 14/Jan/21 ]

Fixed with the error handling in https://jira.mongodb.org/browse/COMPASS-4202 

Comment by Massimiliano Marcon [ 15/Jan/20 ]

Compass is behaving as expected: the URL with 3 /s is parsed correctly: no host, no username, no password and as expected the connection fails.

Generated at Wed Feb 07 22:35:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.