- Append the script's stderr (fallback stdout, capped at 500 chars) to
download/upload error messages so the actual failure reason is visible
(e.g. 'NAS share not connected: /Volumes/...').
- Sync error messages now stay visible until closed instead of
auto-hiding, so the detail can actually be read.
- Do not attempt an upload after a failed download (previously an upload
with an empty temp path was attempted, masking the real download error).
- Tests: MockRemoteProcess gains configurable exit code/error output;
new TestGui::testRemoteSyncErrorDetail.
---------
Co-authored-by: moritzthecat <[email protected]>
Co-authored-by: droidmonkey <[email protected]>
Database Reports and keepassxc-cli db-info printed the root group's
creation time in UTC while Last saved is shown in local time. The group
expiry in the preview panel and the Health Check expiry text had the
same problem. Convert to local time at these display sites, as the
entry model and properties widget already do.
Fixes#12017
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Application::quitBySignal() disabled its socket notifier before emitting
quitSignalReceived() and never enabled it again. When the quit is refused,
for example while a reload's unlock dialog is pending and the database
cannot be locked, every later SIGTERM or SIGINT was ignored for the rest of
the process's life, so a session manager or systemd stop could only end in
SIGKILL.
CheckAuthorization passes "details" (a{ss}) as a top-level D-Bus
argument, which requires QMap<QString, QString> to be registered with
QtDBus. It was only registered by the FdoSecrets code, so when built
with KPXC_FEATURE_FDOSECRETS=OFF, Quick Unlock fails with:
Polkit returned an error: Marshalling failed: Unregistered type
QMap<QString,QString> passed in arguments
Signed-off-by: Arthur Zamarin <[email protected]>
INSTALL.md still listed Qt >= 5.12.0 and a Homebrew Qt@5 note, while
CMakeLists.txt now requires Qt 6.2.4 or newer.
The user guide linked to the Qt 5 documentation. Point the High DPI
variables to the Qt 6 environment variable reference, and the {TIME}
format link to QDateTime::toString, which is what Tools.cpp calls and
which also covers the date specifiers used by the default format.
The man page listed the clip option as --best, but the parser only
accepts --best-match (src/cli/Clip.cpp). It also did not document
generate -c/--custom (src/cli/Generate.cpp) or attachment-import
-f/--force (src/cli/AttachmentImport.cpp).
keepassxc-cli db-edit ignored the result of Database::setKey(). On a
KDBX 4 database whose key includes a challenge-response component, the
new key keeps that component, so db-edit challenged the hardware key
twice: once to transform the new key and again when saving. If the
first challenge failed, for example because the key was not touched in
time, but the second one succeeded, the database kept its old key. The
command then saved the database with the old credentials and printed
"Successfully edited the database.", although the requested password
or key file change had not been applied.
Report the failure, with the reason given by the key, and exit without
saving instead.
Challenge-response keys can now set their error, so that the mock key
used by the tests reports why a challenge failed.
The seed of AES-KDF is the AES-256 key, but seeds of 8 to 31 bytes were
accepted from the KDF parameters of a KDBX 4 database. Botan then
rejected the key and the error was ignored, so the database key was
derived without any AES rounds, while the database settings still showed
the configured number of rounds. Saving the database kept the short
seed.
Require seeds of exactly 32 bytes, as the KDBX format specifies, and
fail the key derivation when the AES transformation fails. Mark
SymmetricCipher::aesKdf() Q_REQUIRED_RESULT, so that its result can't be
ignored again unnoticed.
KeeShare ignored a failure to set the key of an export. Now that the key
derivation can fail, for example when memory runs out, a signed export
that needs KDBX 4 would then be written with an empty key instead of the
share password. Abort the export instead.
After a browser request unlocked the database with Touch ID, focus stayed
on KeePassXC instead of returning to the app that made the request.
The last active application is tracked from
NSWorkspaceDidDeactivateApplicationNotification. The Touch ID prompt is
shown by the coreautha agent, so when it closed it replaced the
requesting app, and raiseLastActiveWindow() then activated coreautha,
which has no window.
Only track regular applications, which skips background agents like
coreautha and UserNotificationCenter.
Fixes: #14168
IconDownloader::setUrl resolved the entry's host name with the blocking QHostInfo::fromName on the GUI thread, only to find out whether the host is an IP address. When the DNS servers are slow or unreachable, the whole window stopped responding until the lookup timed out.
Check the host with UrlTools::isIpAddress instead, which parses the literal address without any network access. Also add IPv6 literal cases to the icon downloader tests.
Fixes#13989
Botan 3.14 randomizes ECDSA signatures by default, even when RFC 6979
is available, so the exact signature bytes are no longer reproducible
and the EC passkey tests fail. Verify the signatures produced by
buildSignature() against the public key embedded in the signing key's
PEM instead, which validates both deterministic and randomized
signatures.
Reject KeeShare references without a UUID and prevent synchronous reentry during import. A missing UUID previously got assigned a random UUID on each parse, causing equality checks to evaluate to false. During the merge, group removal signals could then trigger a nested import, leading to recursive destruction and use-after-free.
References without a <Group> are now rejected, nested imports are blocked by reentrance guards, and regression tests are added.
Additionally fixes file change updates arriving during a running import being silently dropped. These updates are now queue for later execution.
Sometimes KeePassXC did not restore the window geometry properly. This change moves the geometry restoration to before showing the window. That should fix issues especially when the window is moved to another monitor on Wayland, but it may also resolve other strange quirks that can happen when the window starts in the tray.
release-tool.py i18n lupdate checked for an "lupdate version 5.x" substring, which no longer matches for Qt6. The check is unnecessary, and was removed.
Further, Qt 6.11 no longer skips empty source strings, so they make their way into keepassxc_en.ts. This is unnecessary, and it creates a mismatch between a local update and the CI still running Qt 6.4. Replaced empty tr("") strings with plain "".
This is a fixup to #13682 (thanks @tikipiya).
I also found potential overflows in the OPVault importer, which are now fixed. These overflows are mostly relevant on 32-bit systems only, where Qt's decision to use signed ints for all size types comes to bite you.
Small API change: The size parameter of KeePass2RandomStream::randomBytes was widened from int to qsizetype, which is the more appropriate type anyway.
This is a Windows only feature that uses policies set in the registry to control settings in KeePassXC. Overrides are set in HKLM\Software\Policies\KeePassXC and uses the same structure as the ini settings file. Overridden settings are disabled in the user interface and their values are not written to the user's own settings file.