[COMPASS-2764] Over typing "Username" after accepting Atlas SRV causes Compass to hang during connection Created: 18/Apr/18  Updated: 29/Oct/23  Resolved: 20/Apr/18

Status: Closed
Project: Compass
Component/s: Compass, Connectivity
Affects Version/s: 1.12.7
Fix Version/s: 1.12.8

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

Attachments: PNG File Compass_1_12_7_hung_after_SRV_URI_updated_Username.png    

 Description   

Atlas projects often have more than one configured database user account. All database users are present in all clusters within the project. When a customer uses:

  • the "CONNECT" button on the Atlas user interface,
  • Connect with MongoDB Compass,
  • I am using Compass 1.12 or later:

the URL provided for connecting via Compass contains one of the database users for the project. (the last one created?)

mongodb+srv://airNoRoutes:@freetestingcluster-5avn9.mongodb.net/admin

Sometimes it is necessary for the Atlas customer to overtype the Username from the URI with their own credentials. For example, I regularly need to change the Username above to "brianblevins".

When they do overtype the Username this way and then type the password (but not copy/paste the password), Compass 1.12.7 on MacOSX will hang during the connection without ever displaying an error message. There is no obvious reason given in the DevTools console.

I have reproduced the problem with both the M001 student cluster and my own cluster above. One must replace the Username for the problem to occur...however, this is relatively common. I'll attach a screenshot of Compass 1.12.7 in the hung state.


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