keepassxc/src
Aleksa Sarai 9f8943c89b keepassxc-cli show: resolve references in output (#1280)
* core: database: make UUID searching case-insensitive

4c4d8a5e84 ("Implement search for reference placeholder based on
fields other than ID") changed the semantics of searching-by-reference
in KeePassXC. Unforuntately it contained a bug where it implicitly
became case-sensitive to UUIDs, which broke existing databases that used
references (especially since the default reference format uses a
different case to the UUID used while searching).

The tests didn't catch this because ->toHex() preserves the case that it
was provided, they have been updated to check that UUIDs are case
insensitive.

* cli: show: resolve references in output

Previously, `keepassxc-cli show` would not resolve references. This
would make it quite hard to script around its output (since there's not
interface to resolve references manually either). Fix this by using
resolveMultiplePlaceholders as with all other users of ->password() and
related entry fields.

Fixes: keepassxreboot/keepassxc#1260

* tests: entry: add tests for ref-cloned entries

This ensures that the most "intuitive" current usage of references
(through the clone feature of the GUI) remains self-consistent and
always produces the correct results. In addition, explicitly test that
case insensitivity works as expected. These should avoid similar
regressions in reference handling in the future.

* http: resolve references in AccessControlDialog

The access control dialog previously would not show the "real" username
or "real" title when asking for permission to give access to entries.
Fix this by resolving it, as we do in many other places.

Fixes: keepassxreboot/keepassxc#1269


Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2017-12-17 10:44:12 -05:00
..
autotype Focus database unlock dialog on macOS, fix #1023 2017-11-20 04:26:53 -02:00
cli keepassxc-cli show: resolve references in output (#1280) 2017-12-17 10:44:12 -05:00
core keepassxc-cli show: resolve references in output (#1280) 2017-12-17 10:44:12 -05:00
crypto Merge branch 'master' into develop 2017-12-11 21:10:25 -05:00
format Merge branch 'master' into develop 2017-12-11 21:10:25 -05:00
gui SSH Agent: Split private key selection 2017-12-16 09:59:51 +02:00
http keepassxc-cli show: resolve references in output (#1280) 2017-12-17 10:44:12 -05:00
keys Merge branch 'release/2.2.2' into develop 2017-10-12 14:10:20 +02:00
sshagent Treat warning as errors 2017-11-27 20:57:55 +01:00
streams Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
totp Change QTotp class name to Totp 2017-11-20 22:25:09 -02:00
zxcvbn Remove UTF-8 BOM 2017-03-10 16:12:00 +01:00
CMakeLists.txt Refactor fixed font selection into Font class 2017-12-16 09:59:51 +02:00
config-keepassx.h.cmake SSH agent support 2017-11-19 14:38:59 +02:00
main.cpp Open previously opened databases in correct order 2017-07-27 21:37:48 +02:00
version.h.cmake Display git revision in about dialog. 2015-07-18 13:14:13 +02:00