- 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]>
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
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.
Under QT_QPA_PLATFORM=offscreen the X11 native interface exists but has no
display, and DefaultRootWindow() dereferenced the null pointer at startup.
The global shortcut code already checks for a null display.
DatabaseWidget::lock() returned early when its autosave failed and a reload
began, without clearing m_attemptingLock. Every later lock() then returned at
the m_attemptingLock check, so the database could not be locked again until
KeePassXC was restarted.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
QDBusAbstractInterface::isValid() can latch an empty service owner
cached while xdg-desktop-portal is still activating, permanently
disabling auto-type and the global shortcut. Use the interfaces'
version() property reads instead: real blocking calls that trigger
activation if needed and return 0 only on failure.
* Fixes a specific warning that spams the console due to a deprecated signal that was used to indicate checkboxes state changed.
* Converted all QCheckBox::stateChanged(int) to QCheckBox::toggled(bool). All functionality still works as intended.
* Fix Secret Service message being null in some cases when unlocking a database
* Update changelog
---------
Co-authored-by: Janek Bevendorff <[email protected]>
* Add minimal native Windows Arm64 support
Extend the Qt-via-vcpkg work from #13473 with only the source changes required for Windows Arm64 triplet selection, deployqt resolution, ordered runtime dependency deployment, and architecture-correct MSI metadata.
Co-authored-by: Janek Bevendorff <[email protected]>
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: Gordon Lam (SH) (from Dev Box) <[email protected]>
Co-authored-by: Janek Bevendorff <[email protected]>
Co-authored-by: Copilot <[email protected]>