[COMPASS-5021] With domain, user name and password, compass tried to localhost Created: 19/Aug/21  Updated: 29/Oct/23  Resolved: 03/Mar/22

Status: Closed
Project: Compass
Component/s: Compass, Connectivity
Affects Version/s: 1.28.1
Fix Version/s: 1.31.0

Type: Bug Priority: Blocker - P1
Reporter: Guruprasad K Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File MongoDBCompassv1.28.1-a.png     PNG File MongoDBCompassv1.28.1-b.png     PNG File MongoDBCompassv1.28.1.png    
Epic Link: COMPASS-4948
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

What is going wrong? 

Unable to connect to remote mongoDB using Compass v1.28.1. It always tries to connect to localhost. 

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

  1. Provide the values for fields Hostname, Username and password 
  2. Provide replica set name and preference as primary
  3. Observe that if local instance of mongoDB is running, it connects and shows the database wrongly since the details were of remote machine
  4. Also observe that if local instance of mongoDB is stopped, you receive and error of unable to connect to database

Expected Results

What do you expect to happen?

Connect to remote details provided or show an error 

Actual Results

What do you observe is happening?

Connects to localhost (if running) or shows that unable to connect to localhost though the details provided in the connection string are of remote

Additional Notes

Any additional information that may be useful to include.

Compass connects to remote without authentication or replica set



 Comments   
Comment by Maurizio Casimirri [ 03/Mar/22 ]

This was a quirk with the old form that had race conditions with SRV resolutions in the UI

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