[COMPASS-4162] Stale "replicaSet=" parameter in the connection string Created: 24/Feb/20  Updated: 29/Oct/23  Resolved: 17/Apr/20

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.20.5
Fix Version/s: 1.21.0

Type: Bug Priority: Major - P3
Reporter: Tanna Matan Assignee: Durran Jordan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2020-02-24 at 10.24.21 AM.png     PNG File Screen Shot 2020-02-24 at 10.24.39 AM.png     PNG File Screen Shot 2020-02-24 at 10.25.04 AM.png    
Sprint: Iteration Avocado, Iteration Blackberry

 Description   

If a favorite connection has been set with the Replica Set Name setting in the More Options page, even though the Replica Set Name value is removed, the parameter `replicaSet=` will still display in the connection string.

Additionally, removing the parameter `replicaSet=` from the connection string and click save changes will only affect the immediate connection. If we click on the other favorite connections and click back to this problematic connection or restart MongoDB Compass, the parameter `replicaSet=` will still display in the connection string and cause the failed connection with the error message Incomplete key value pair for option.

Please note we have reviewed that there is no whitespace in the Replica Set Name setting.

 



 Comments   
Comment by Githook User [ 16/Apr/20 ]

Author:

{'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}

Message: COMPASS-4162: Don't populate empty strings in URI params
Branch: master
https://github.com/mongodb-js/connection-model/commit/fd93f98d39edc18c5c61250aeaa52666c5ba3286

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