[COMPASS-3978] connection favorite persists "undefined" for password in "paste conn string view" Created: 26/Nov/19  Updated: 10/Feb/21  Resolved: 04/Dec/19

Status: Closed
Project: Compass
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PDF File undefined passwd.pdf    
Sprint: Iteration Tarantula

 Description   

I have a favorite connection to my atlas free tier. For some reason, it includes the password as "undefined" which results in the connection timing out (rather than failing or prompting for passwd). I've attached a screenshot.

Here's the URL that was auto-populated.

mongodb://dan:undefined@surflog-shard-00-00-u9fko.mongodb.net:27017/admin?authSource=admin&replicaSet=surflog&readPreference=primary&appname=MongoDB%20Compass%20Beta&ssl=true

If I go to the "Fill in connection fields individually" screen it will render as "******"

If I fill in the password correctly, then toggle back to the shortcut screen, the password is correct.

 



 Comments   
Comment by Pablo Musumeci [ 10/Feb/21 ]

I have the same issue (Version 1.21.2). It's very inconvenient as it takes some time for the connection to timeout only to realize that the password was not stored. 

Comment by Massimiliano Marcon [ 04/Dec/19 ]

We had a problematic beta at some point that was not storing passwords correctly. So maybe it was saved as undefined. If you save the password again it should now work properly.

Comment by Daniel Pasette (Inactive) [ 28/Nov/19 ]

Sorry, i put the wrong version in.... It's 1.20-beta9

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