Git Product home page Git Product logo

Comments (19)

ingria avatar ingria commented on July 19, 2024 4

I'm on 1.38.2 and I have the same issue with password - it disappears from saved connection after compass restart.

from compass.

mesmerx avatar mesmerx commented on July 19, 2024 4

i found the reason, the XDG_CURRENT_DESKTOP is not set, or its set to something like Hyprland (in my case) so to this work you need to set it as GNOME or other acceptable that you can find the list here

https://source.chromium.org/chromium/chromium/src/+/main:base/nix/xdg_util.cc;l=146-169

and for electron specific (the case of mongo)

electron/electron#32598

electron/electron#32598 (comment) the comment for the savior

you just need the keyring or wallet or any polkit for this passwords to be runing

TL/DR:
XDG_CURRENT_DESKTOP='GNOME' mongodb-compass
fixes the issue

from compass.

Tofandel avatar Tofandel commented on July 19, 2024 3

The ssh tunnel settings as well, so basically none of the fields in More options are saved

from compass.

Kadrian avatar Kadrian commented on July 19, 2024 2

I can confirm this under 1.20.5 and OS X, and it did work in an older version before, but I'm not sure in which version. How can we help fix this? Does anyone know when / where it was taken out?

from compass.

luigiaimage avatar luigiaimage commented on July 19, 2024 2

I'm on version 1.41 and the password is still not being saved.

from compass.

Anemy avatar Anemy commented on July 19, 2024 1

@frederickferby Thanks for pinging us on this. We were able to reproduce, looks like #3263 should fix it. We'll have that in the next Compass release.

from compass.

imlucas avatar imlucas commented on July 19, 2024

https://jira.mongodb.org/browse/COMPASS-4066

from compass.

antpaw avatar antpaw commented on July 19, 2024

I've the same problem with the Password field, it doesn't get saved in favs

from compass.

vdyalex avatar vdyalex commented on July 19, 2024

All the favorites are saving as a connection string. Even when I set the fields individually it returns to connection string when opened.

from compass.

JasonDepp avatar JasonDepp commented on July 19, 2024

have the same issue under Compass Version 1.20.5

from compass.

Anemy avatar Anemy commented on July 19, 2024

Pinging folks that have commented: @Kadrian @JasonDepp @Tofandel @antpaw @mshedsilegx
We've just released a new version of Compass, v1.31.0, with a number of improvements for connectivity and how we build, save, and load connections. This issue with settings not persisting should be fixed with the changes.
https://www.mongodb.com/try/download/compass
https://github.com/mongodb-js/compass/releases
Feel free to reopen if you update and it's still happening. Sorry for the long turnaround on this, it took us a while to rebuild up this experience to be more reliable and streamlined. Thanks for reporting the issue and trying out Compass!

from compass.

federicobaier avatar federicobaier commented on July 19, 2024

I have version 1.32.2 and I'm having the same issue. It refuses to save the favorite if I have SSL configuration in the connection string.

from compass.

Anemy avatar Anemy commented on July 19, 2024

@frederickferby Does it give you an error? What is the configuration you're using?

from compass.

federicobaier avatar federicobaier commented on July 19, 2024

I'm authenticating with X.509. I turn on SSL/TLS, and choose my cert file. That's all.
It doesn't throw any errors, it just doesn't save the connection.
I tried creating a new one and save it as favorite, but then it doesn't appear in the favorites.
I also tried modifying an existing one, and saving the changes. But when I go back, the previous string appears, not the new one that I saved.

from compass.

Anemy avatar Anemy commented on July 19, 2024

@federicobaier Can you check if you're using any unescaped characters in the connection string? This might be caused by the issue mentioned in: https://jira.mongodb.org/browse/COMPASS-5745 where we fail to load connections with unescaped characters in their connection strings. It's an issue we'd like to get a fix out for sooner.

from compass.

federicobaier avatar federicobaier commented on July 19, 2024

No, I don't see any unescaped characters. This is the connection string (without the cluster domain):

mongodb+srv://here.goes.the.cluster.domain/?authSource=%24external&authMechanism=MONGODB-X509&retryWrites=true&w=majority&tls=true&tlsCertificateKeyFile=%2FUsers%2Ffedebaier%2Fdev%2Fcerts%2Fdb-cert.pem

The connection works fine, it just doesn't save it as favorite.

from compass.

federicobaier avatar federicobaier commented on July 19, 2024

Thanks @Anemy! Looking forward for the fix.

from compass.

jhartzell avatar jhartzell commented on July 19, 2024

I'm on version 1.41 and the password is still not being saved.

Also having the same issue under arch linux.

Here is a log entry inside of compass

{
  "t": {
    "$date": "2024-03-10T06:43:15.101Z"
  },
  "s": "E",
  "c": "CONNECTION-STORAGE",
  "id": 1001000202,
  "ctx": "Connection Storage",
  "msg": "Failed to encrypt secrets",
  "attr": {
    "message": "Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available."
  }
}

from compass.

MattNannetti avatar MattNannetti commented on July 19, 2024

I'm on version 1.41 and the password is still not being saved.

Im also having the same issue on 1.42.3 RedHat.

from compass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.