Skip to content
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

Parentheses in ID cause lookup to return null value #411

Open
jaybeers opened this issue Mar 14, 2022 · 0 comments
Open

Parentheses in ID cause lookup to return null value #411

jaybeers opened this issue Mar 14, 2022 · 0 comments

Comments

@jaybeers
Copy link

jaybeers commented Mar 14, 2022

If the entry name/ID you're looking up has parentheses in it, the get method won't find it and you'll get a null response. For example, say you have a KeePass entry with the name "Email (work)"; the following call to .get() will return None (in Python terms). I'm doing the lookups from a Python script I wrote; here's a minimalist version of the code I'm using.

import keepasshttp

association_key_filename = "association_key.bin"
entry_name               = "Email (Work)"

kph = keepasshttp.KeePassHTTP(
    storage = association_key_filename,
)

print(kph.get(entry_name))

Lookups for other entries work fine, and I was also able to look this entry up after I changed the name to "Email - Work". I'm including the versions of everything below, including my other plugins which I'm guessing aren't relevant, but I suppose one never knows. 🙂

Component Version
KeePass 2.44
KeePassHTTP 1.8.4.2
KeePassRPC 1.14.0.0
KeeTrayTOTP 0.108.0.0
@jaybeers jaybeers changed the title Parentheses in ID cause lookup to fail Parentheses in ID cause lookup to return null value Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant