-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Have you searched for an existing issue?
- Yes, I tried searching and reviewed the pinned issues
Brief Summary
keepassxc-cli show
's quiet option silently fails when either providing a non-existing database file, or when providing invalid credentials. Error messages for non-existent entries are shown as expected.
This may make troubleshooting automatons/scripts more difficult.
Steps to Reproduce
- Run the following commands & observe the (stderr) output:
keepassxc-cli show --quiet non-existant-db example
keepassxc-cli show --quiet db.kdbx example
(entering invalid credentials)keepassxc-cli show --quiet db.kdbx non-existant-entry
Expected Versus Actual Behavior
Currently, only the non-existant entry command writes an error to stderr
$ keepassxc-cli show --quiet non-existant-db example
$ keepassxc-cli show --quiet example.kdbx example # entering invalid credentials
$ keepassxc-cli show --quiet example.kdbx non-existant-entry
Could not find entry with path non-existant-entry
The expected behavior would be that all of the above would provide an error message:
$ keepassxc-cli show --quiet non-existant-db example
Failed to open database file non-existant-db: not found
$ keepassxc-cli show --quiet example.kdbx example # entering invalid password
Error while reading the database: Invalid credentials were provided, please try again.
If this reoccurs, then your database file may be corrupt. (HMAC mismatch)
$ keepassxc-cli show --quiet example.kdbx non-existant-entry
Could not find entry with path non-existant-entry
KeePassXC Debug Information
KeePassXC - Version 2.7.10
Qt 5.15.17
Debugging mode is disabled.
Operating system: NixOS 25.11 (Xantusia)
CPU architecture: x86_64
Kernel: linux 6.12.41
Enabled extensions:
- Auto-Type
- Browser Integration
- Passkeys
- SSH Agent
- KeeShare
- YubiKey
- Secret Service Integration
Cryptographic libraries:
- Botan 3.8.1
Operating System
Linux
Linux Desktop Environment
KDE
Linux Windowing System
Wayland
mrshmllow
Metadata
Metadata
Assignees
Labels
No labels