[BUG] APS crashes when trying to decrypt a password with imported key
strikesmeasodd opened this issue · 8 comments
Describe the bug
After importing my key through the key manager, when I try to decrypt a password it says "Found .gpg-id, but it contains an invalid key ID, fingerprint or user ID."
I followed the instructions here and deleted the .gpg-id file, but now the app crashes every time I try to decrypt a password.
The key was exported from my laptop with a working password store using the command given in the wiki
I'm using the latest snapshot build APS-freeRelease-2.0.0-SNAPSHOT.apk . I previously used the F-Droid release with no problems.
Steps to reproduce
Steps to reproduce the behavior:
- Import key with key manager
- Delete .gpg-id
- Try to decrypt a password
- App crashes
Expected behavior
Password is decrypted
Screenshots
No response
Device information
- Device: Samsung Galaxy A15
- OS: Android 14
- App version: Free release 2.0.0 snapshot from revision 341c5fa
Additional context
No response
The issue template asks to attach a log for bug reports: https://docs.passwordstore.app/docs/users/reporting-bugs
Your .gpg-id file is still empty, v2 doesn't yet try to automatically populate the .gpg-id so the advice on the docs is stale. Sorry about that, I'll add a note there soon.
In the mean time you can add your full key ID manually using a text editor or via pass init keyid on a Linux machine. Just putting in the email associated with the key as the key ID should do the job.
I deleted and re-cloned the repo from my laptop, to restore the .gpg-id with the key's name. Now the app stopped crashing when I try to decrypt , but it's back to saying "Found .gpg-id, but it contains an invalid key ID, fingerprint or user ID."
The key doesn't have an associated email address, only a name. Could that be what's causing the problem?
Thank you
I have the same problem. I was using an older 2.0.0 Build, when I suddenly got the error message "Found .gpg-id, but it contains an invalid key ID, fingerprint or user ID." whenever I try to open a password file.
I did not change anything. I tried the newest build, its still not working.
Only the released version in the play store works.
https://github.com/android-password-store/Android-Password-Store/actions/runs/11052077025
Try the new snapshot build once this CI run has completed
I installed this new snapshot. I sadly still get this error.
Shown in this log file:
log_output.txt
Thank you!