-
Notifications
You must be signed in to change notification settings - Fork 21
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
ItemNotFoundException while iterating all items #42
Comments
Yes, it seems like that. I think it's a server-side problem. Are you using gnome-keyring or another daemon? |
gnome-keyring. It's a default installation of ubuntu 22.04 desktop with standard gnome DE. No tweaking on my part. I've probably deleted and added a couple of entries, though; maybe there's some tombstone for deleted entries, rather than a removal, or something like this? Can I give you some additional debug info somehow? |
Can you try building and running this small C++ program and see if it shows the same error message? Also does that error persist after restarting gnome-keyring? Do you know a way to reproduce it on a clean installation? |
I can't reproduce this, despite adding hundreds of keys through the API and deleting and re-adding many times. Enumeration is always fully successful with the given Python sample code. @alanfranz please try to move or rename your ~/.local/share/keyrings directory, reboot, and then create/delete some keys and test whether enumeration still fails. If not, then it's probably some kind of corruption in your current file(s). |
Using this script:
OS: Ubuntu Linux 22.04 64 bit intel, fully updated
Package versions:
It's a freshly installed VM I was used for testing. There're two keyrings (Login and awsvault) with one entry each. Output:
It appears that the get_all_items() method fumble after properly fetching the only entry in the keyring.
I tried dumping the Items property in the get_all_items() method call and I get this:
['/org/freedesktop/secrets/collection/login/2', '/org/freedesktop/secrets/collection/login/1']
So, it seems more items are enumerated than actually there?
The text was updated successfully, but these errors were encountered: