[COMPASS-4633] X.509 chosen SSH values reset if unsuccessful connection Created: 11/Feb/21  Updated: 29/Oct/23  Resolved: 03/Mar/22

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

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

Attachments: PNG File Screen Shot 2021-02-11 at 1.15.17 PM.png     PNG File Screen Shot 2021-02-11 at 1.16.44 PM.png    
Epic Link: COMPASS-4948
Documentation Changes: Not Needed

 Description   

Problem Description

Affects the Beta version, 1.26.0-beta.0 (but not a choice in the Jira field above).

X.509 chosen X.509/TLS/SSH values reset if unsuccessful connection

Steps to Reproduce

Enter a Hostname "mongodb+srv://ls.ab.mongodb.net/test"
Choose SRV Record toggle (enable it)
Click "More Options"
Fill in Replica Set Name "abc"
Read Preference Primary
Choose a PEM file for the 3 Cert fields
Click "Connect" button
It will fail as expected.

However, error is "URI does not have hostname, domain name and tld". Error message is not accurate.
Click Hostname tab
Modify Hostname to anything (make a small change to text)
Click on "More Options" and the Certificates have been erased and SSL says, "System CA/ Atlas Deployment".

Expected Results

Expected previous SSL choice and 3 certificate file names were saved

Actual Results

See attachment

Additional Notes


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