-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When adding a repo, setting password fails without feedback when password manager is locked #606
Comments
Nice catch! |
I don't know if it is really related, but I'm having a similar issue when importing an encrypted repository.
|
Yeah, its the same bug. |
I think that this PR is blocking me from using Vorta. Log shows the following:
And GUI says: |
Can't reproduce this on macOS, but will reopen it for more discussion. Are those still the right steps?
|
The only interesting thing in the logs is Relevant code for this keyring module would be here. Would be simple to test in just iPython or so. vorta/src/vorta/keyring/secretstorage.py Line 45 in a876aed
|
Open Vorta in a KDE/plasma session. And any of the following:
leads to It looks like it is related to Kwallet detection and #540 ? I've tested and if I edit
to
I had to re-add the repo but it works just fine |
"..And GUI says: Please unlock your password manager..". |
I don't know much about Linux desktops, but from the patch above it seems our Secret Storage class initializes successfully, even though Secret Storage isn't usable? If so,
|
I think that it is expected to have the wallet unlocked when your session is running. And you can have multiple wallet back-ends depending on your desktop environment. But someone please correct me. What my patch does is:
However I don't know if being locked can be an heuristic for the desktop environment being used. Maybe @samuel-w can clarify |
With the patch, when secret storage is locked it will automatically use kwallet, leading to this issue again #616. |
Do you have gnome keyring running? |
Actually, by default Ubuntu pulls in the gnome keyring, so it and all derivatives have secretstorage set up by default. I'll change the order so KWallet runs first. |
Yes, for some reason |
Describe the bug
When adding a repo, setting password fails without feedback when password manager is locked
To Reproduce
Steps to reproduce the behavior:
Set password invisibly fails for KWallet, or does nothing while throwing exception in log for secretstorage.
Not sure about macOS keychain.
Suggested fix: Make set_password return whether or not the password was set correctly with get, and either:
Should check if exception is thrown, otherwise generic fix method is to check with get_password after set_password
return bool(self.get_password(sevice, repo_url))
Desktop (please complete the following information):
Additional context
If appropriate include logs. Can be found in Main Window > Misc Tab > Log.
Log for secretstorage:
The text was updated successfully, but these errors were encountered: