[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: |
|
||||||||
| Issue Links: |
|
||||||||
| Epic Link: | COMPASS-4362 | ||||||||
| Documentation Changes: | Not Needed | ||||||||
| Sprint: | Iteration Vicuña, Iteration Tangerine | ||||||||
| Description |
|
To reproduce in 1.20.3 (Stable): 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. |