[COMPASS-5958] Connections Favourites are not perissted. Created: 14/Jul/22  Updated: 29/Oct/23  Resolved: 02/Aug/22

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: 1.32.3
Fix Version/s: 1.32.5

Type: Bug Priority: Critical - P2
Reporter: Gavin Qiu Assignee: Maurizio Casimirri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Window 10


Issue Links:
Duplicate
is duplicated by COMPASS-5745 Connection string with unescaped char... Closed
Documentation Changes: Not Needed

 Description   

Close Compass and re-start the app,  all the saved connections and favourites are gone. ** 

I am trying version 1.32.3 stable.  **  

I have to say,  you guys suck!  **  

 



 Comments   
Comment by Githook User [ 28/Sep/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: update-compass-shell-to-shared-config
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 19/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore(deps): bump driver to 4.10.0 MONGOSH-1299 (#1348)

Also bump mongodb-connection-string-url to include COMPASS-5958.
Branch: 1281-dev
https://github.com/mongodb-js/mongosh/commit/1644fe17d7fef664b2a848f215cab83582b2b4e6

Comment by Githook User [ 19/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore(deps): bump driver to 4.10.0 MONGOSH-1299 (#1348)

Also bump mongodb-connection-string-url to include COMPASS-5958.
Branch: main
https://github.com/mongodb-js/mongosh/commit/1644fe17d7fef664b2a848f215cab83582b2b4e6

Comment by Githook User [ 19/Sep/22 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: chore(deps): bump driver to 4.10.0 MONGOSH-1299

Also bump mongodb-connection-string-url to include COMPASS-5958.
Branch: driver-410
https://github.com/mongodb-js/mongosh/commit/f836f2e86c34375cefde48e3001a3fa806414be4

Comment by Githook User [ 30/Aug/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: compass-settings
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 27/Jul/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: macos-arm-build
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 26/Jul/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: compass-sidebar-merge
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 25/Jul/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: COMPASS-5678-query-history-as-popover
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 25/Jul/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: COMPASS-5672-update-crud-toolbar-to-lg
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 25/Jul/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: remove-rc-from-evergreen
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 25/Jul/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: remote
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 25/Jul/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: 1.32-releases
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 23/Jul/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958 (#3280)

  • fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
  • fixup: bump mongodb-connection-string-url

Co-authored-by: Anna Henningsen <anna@addaleax.net>
Branch: main
https://github.com/mongodb-js/compass/commit/344e7de26caeba51c72a16d52ffae24dbbabdb04

Comment by Githook User [ 22/Jul/22 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(connection-storage): allow extract/merge secrets for cosmos connection string COMPASS-5958
Branch: fix-azure-connection-load
https://github.com/mongodb-js/compass/commit/f16a874470ebcf91c2644eb51acf77a0f48d73b5

Comment by Mohamed Haseeb [ 22/Jul/22 ]

Happening on Version 1.32.4.
Windows 11 Build 22000.795

Comment by Maurizio Casimirri [ 21/Jul/22 ]

qiuhc12@gmail.com Thanks for reporting this bug. With this URI i could reproduce it: 'mongodb://database-ut:somerandomsecret@database-haha.mongo.cosmos.azure.com:8888/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@database-haha@'

I get this error in the logs:
{"t":

{"$date":"2022-07-21T10:21:03.630Z"}

,"s":"E","c":"COMPASS-DATA-SERVICE","id":1001000102,"ctx":"Connection Storage","msg":"Failed to load connection, error while converting from model","attr":{"message":"Username contains unescaped characters database-ut@database-haha.mongo.cosmos.azure.com"}}

Comment by Gavin Qiu [ 19/Jul/22 ]

Compass failed to handle Azure MongoDB URI,  e.g.,  mongodb://database-ut:somerandomsecret@database-haha.mongo.cosmos.azure.com:8888/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@database-haha@

I am able to connect to Azure MongoDB successfully with the URI in the format above, but the connection information will disappear at the next time when Compass is started.  

 

Please fix this bug, Thanks!  

Comment by Gavin Qiu [ 14/Jul/22 ]

The probelm is in the latest stable version of 1.32.3.  

This Jira does not let me correct the version.  

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