-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Backslashes in password are not handled correctly #674
Comments
For me on macOS, it's working as expected:
So the issue must be with the SecretService backend or with the Secret Service itself. |
Looking at the backend implementation, keyring/keyring/backends/SecretService.py Lines 77 to 92 in 24ec25d
I don't see anything there that would affect the encoding or escaping of characters, so I'm inclined to think the issue might be with the Secret Service. @mitya57 do you have any insight? |
Actually, it works fine for me too:
@lajonss Can you reproduce the bug with SecretStorage API? E.g. like this:
|
I couldn't reproduce the problem on my x86 devices.
On the original device I get:
|
Is your system 32-bit or 64-bit ARM? Also, is it running gnome-keyring or some other Secret Service implementation? I have just tried on Debian arm64 with gnome-keyring, it works without errors and I get the expected non-empty output. Output of dbus-monitor on your system would be helpful too (but it may be a bug in server side, not the client). |
Describe the bug
Backslashes in password (e.g. encoded unicode characters) make the library behave incorrectly.
To Reproduce
Expected behavior
I guess backslashes should be supported, or an error should be reported when trying to set such password.
Environment
Additional context
I've stumbled upon this when using Numberstation with polish characters (ł, ż) entered as token names. Numberstation uses
urllib.parse.urlencode
andjson.dumps
to turn them into a password.Python API returns empty string:
The text was updated successfully, but these errors were encountered: