Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-06-12Improve testdatabase performanceJonathan White
2021-06-10Resolve compiler warnings for unused return valuesJonathan White
* Fixes #1932 - See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c29 Adding a negation before the function call allows the (void) syntax to work properly.
2021-05-30Better description text for Key File change dialogJonathan White
2021-05-30OPVault: Use Text instead of Name for attribute and section namesJonathan White
* Fix #6303 - the text attribute in 1Password contains the actual text seen in 1Password whereas the name attribute may contain a ref pointer and not a name.
2021-02-27Exclude additional lookalike characters (6G8B)Brandon Atkinson
* Fix #6075
2021-01-08Add support for version 2 XML key files.Janek Bevendorff
As discussed in #4317, the next KeePass2 release will ship with support for a new generation of XML key files which enable hash integrity checks. This patch adds support for reading and generating this new format. By default, KeePass2 now uses the .keyx extension for generated key files, which was added to KeePassXC's key generation file chooser filter. We continue to generate hashed binary key files by default, but the user can explicitly save the file with the new .keyx extension to generate an XML v2 key file (currently undocumented). When opening a database, the key file type is still determined by content negotation, so the file extension has no impact here. As an additional change, the legacy key file warnings have been improved slightly to be less confusing and more helpful.
2020-12-21Copy history when drag/drop entries and groupsJonathan White
* Fix #5809
2020-12-13Display default autotype sequence on entry preview panekrsnik93
* Fix #5450
2020-12-06Improve CSV export and import capabilityJonathan White
* Fixes #3541 * CSV export now includes TOTP settings, Entry Icon (database icon number only), Modified Time, and Created Time. * CSV import properly understands time in ISO 8601 format and Unix Timestamp. * CSV import will set the TOTP settings and entry icon based on the chosen column.
2020-12-04Add Argon2id KDF (backport of #5726)Janek Bevendorff
2020-10-15Fix theme issues on macOSJanek Bevendorff
* Fix #5025 - Change edit entry widget title separator to the common bullet character • (U+2022) * Fix #5307 and Fix #5347 - Remove transparent toolbar/window on macOS and properly color text in toolbar.
2020-10-15Improve default Qt widget iconsJonathan White
* Include new icons for toolbar overflow to ensure they are tinted correctly and fit in with the rest of the UI. * Replace custom code for clearing line edits by including a proper icon for the default action.
2020-09-13Fix Best-Matching ..again (#5316)Sami Vänttinen
Co-authored-by: Jonathan White <support@dmapps.us>
2020-09-05Don't mark URL references as invalid URL (#5380)Sami Vänttinen
2020-08-19Change actions for F1-F2-F3 keysJonathan White
* Fixes #5037 * F1 focuses group view, if already focused it opens the focused group for editing * F2 focuses entry view, if already focused it opens the focused entry for editing * F3 focuses search
2020-08-08Fixup saving non-data changes on database lockJonathan White
* Fix #5107 * Change setting for non-data changes to Auto save on database lock (or not) instead of marking modified. * When enabled, database will be auto-saved if there are only non-data changes, but will not prompt the user if saving has failed. * When disabled, database will not auto-save if there are only non-data changes (same behavior as 2.5 and below) and will not mark the database dirty.
2020-07-21Adjust matching with best-matching credentials enabledvarjolintu
2020-07-18Substitute tilde with USERPROFILE on WindowsToni Spets
The substitution is now more shell-like and tilde is only replaced from the beginning of the path if it is trailed by a slash.
2020-07-03Replace "Master Key" with "Database Credentials"Jonathan White
Definitions: * Database Key - Cryptographic hash used to perform encrypt/decrypt of the database. * Database Credentials - User facing term to refer to the collection of Password, Key File, and/or Hardware Key used to derive the Database Key. Changes: * Remove the term "master" and "key" from the user's lexicon and clarify the code base based on the definitions above. * Clean up wording in the UI to be clearer to the end user.
2020-06-20FDO Secrets: Fix double free on exitJonathan White
* Prevent double free due to QObject cleanup happening before/after the ExtraPage storing the QSharedPointer to FdoSecretsPlugin is deleted. * Fixes #4877
2020-06-07Fix permissions changing on database saveJonathan White
* Saving a database in unsafe mode retains the existing permissions on the kdbx file * New databases (save as, save backup, new database) and new key files are saved with 0600 permissions (user read/write), fixes #2575
2020-06-04Update edit entry widget when backing entry changesJonathan White
* Fixes #4060 * Also fix not emitting entryModified() when history is truncated. This possibly fixes other crashes with apply button when the history is truncated and then the history page is shown with a deleted entry.
2020-06-04Fix theming with Qt 5.15Jonathan White
* Fixes #4765 * Fixes #4766
2020-06-04Fix resolving resources when running from build directoryJonathan White
* Copy wordlists to build dir share folder * Change resource path resolution to only test the provided directory, not finding a specific file
2020-06-04Various minor bug fixes / enhancementsJonathan White
* Fix issues when Config options were renamed * Fix compile issues when using clang 10 * Rearrange database menu icons and import database menu icons * Set minimum size of MainWindow to 800 to prevent search bar from hiding * Fix not saving password generator options when closing the standalone generator * Add headers to health check reports * Don't show hidden content dots when notes are hidden but empty. * Fix saving new database files in SMB shares on Windows, fixes #4809 * Gracefully handle duplicate attachments : Instead of bailing out with an error, prepend a random string to the name of duplicate attachment records. This prevents data loss from other programs that mishandled KDBX XML writing. Fixes #2493 * Properly handle blocked import of signed KeeShare database, fixes #4413
2020-06-01Fix memory leak in testAaron D. Marasco
2020-05-30Clean up various parts of the UI and rearrange settingsJanek Bevendorff
- Unify widget layouts and margins - Fix tab order on a bunch of widgets - Fix broken entry/group edit form layout and replace with grid layout - Rearrange some settings for better logical grouping - Fix some settings checkboxes not being enabled/disabled on load - Fix "General" settings tab scrolling - Rename "Root" group to "Passwords" - Update demo.kdbx accordingly and redownload favicons - Change entry path display to use slash separators - Reduce Medium and Large icon sizes slightly
2020-05-29Replace database icons with SVG'sJonathan White
Original source of icons is the icon8 library (http://icons8.com/c/flat-color-icons) and Paomedia (https://github.com/paomedia/small-n-flat). All icons used are licensed MIT or CC0; annotated in COPYING. * Closes #4071 * Increase default size of database icons to 24px and entry preview panel to 48px * Add shell script to assemble the database icons * Use QIcon to seamlessly support High DPI displays and pixmap caching * Add badge support for KeeShare groups and expired entries. * Guard against use of QPixmap::fromImage without a GUI * Add SVG minify and improve `make icons` Co-authored-by: Wolfram Rösler <wolfram@roesler-ac.de>
2020-05-28Add an option to EntrySearcher to skip protected attributesAetf
2020-05-28FdoSecrets: add unit testsAetf
2020-05-22Add natural sort of entry listHolger Böhnke
Introduce a third unsorted status that shows entries in the order they occur in the KDBX file. * Add keyboard shortcut Ctrl+Alt+Up/Down to move entries up and down in sort order * Add entry context menu icons to achieve movement up/down * Only show menu icons when in natural sort order * Add Material Design icons for moving up/down * Add feature to track non-data changes and force a save on exit to ensure they are not lost when locking a database. This allows users to make entry movements and group expand/collapse operations and not lose that state. Remove saveas
2020-05-19SSH Agent: Track which database owns a key for remove-on-lockToni Spets
Fixes #4532
2020-05-16Implement 'Save Database Backup' optionAndrew Meyer
Add an option in the 'Database' menu to save a backup of the current database. Add unit test for saving database copy * Open a test database, mark it as modified, and save a copy * Fail if the copy is not a valid database * Fail if the original database is saved * Fail if the original database is no longer marked as modified
2020-05-16Make GUI tests more robust for CIJonathan White
2020-05-15Fix changing focus around the main window using tabJonathan White
* Override Qt's default [broken] behavior of handling Tab/Shift+Tab to navigate around the MainWindow. Completely fixes trapped focus. * Improve handling of search results when navigating the UI. * Fix selecting first entry after ending a search. * Add keyboard shortcuts to directly focus on search (F1), Group List (F2), and Entry List (F3) * Fixes #2878, #4636, and #4221
2020-05-15Significantly enhance hardware key robustnessJonathan White
* Significantly improve user experience when using hardware keys on databases in both GUI and CLI modes. Prevent locking up the YubiKey USB interface for prolonged periods of time. Allows for other apps to use the key concurrently with KeePassXC. * Improve messages displayed to user when finding keys and when user interaction is required. Output specific error messages when handling hardware keys during database read/write. * Only poll for keys when previously used or upon user request. Prevent continuously polling keys when accessing the UI such as switching tabs and minimize/maximize. * Add support for using multiple hardware keys simultaneously. Keys are identified by their serial number which prevents using the wrong key during open and save operations. * Fixes #4400 * Fixes #4065 * Fixes #1050 * Fixes #1215 * Fixes #3087 * Fixes #1088 * Fixes #1869
2020-05-15Complete refactor of Browser Integration classesJonathan White
* Removed option to attach KeePassXC to the browser extension. Users must use the proxy application to communicate with KeePassXC. * Significantly streamlined proxy code. Used same implementation of stdin/stdout interface across all platforms. * Moved browser service entry point to BrowserService class instead of NativeMessagingHost. BrowserService now coordinates the communication to/from clients. * Moved settings page definition out of MainWindow * Decoupled BrowserService from DatabaseTabWidget * Reduced complexity of various functions and cleaned the ABI (public vs private). * Eliminated BrowserClients class, moved functionality into the BrowserService * Renamed HostInstaller to NativeMessageInstaller and renamed NativeMessageHost to BrowserHost. * Recognize XDG_CONFIG_HOME when installing native message file on Linux. Fix #4121 and fix #4123.
2020-05-14Add group searchBO41
* Allow searching by group using the `group:` field. * Group hierarchies can be searched by including a '/' in the search term.
2020-05-14CLI: Use stderr for password promptJonathan White
Fixes #3398. Convert to QTextStream for all CLI IO and greatly improve CLI tests * Completely overhaul CLI tests to be much more streamlined and easy to read. Removed unnecessary code blocks by using existing functions. Co-authored-by: Emma Brooks <me@pluvano.com>
2020-05-14Improve OPVault handling and replace test opvaultJonathan White
* Fix various bugs in opvault parsing to include: TOTP parsing, date handling, naming convention, attachments, and multiple url's. * Remove category groups that don't have any entries. * Simplify tests by focusing on the resulting database instead of the parsing mechanics. * Remove proprietary "freddy" opvault in favor of self-made "keepassxc" opvault. * Fix #4069, select opvault file on macOS
2020-05-11Change settings checkbox texts to positive phrasing (#4715)ameyer0
2020-05-09Reports: Add "Known Bad" flag for entriesWolfram Rösler
* Fixes #4168 * Introduce a custom data element stored with an entry to indicate that it is a "Known Bad" entry. This flag causes database reports to skip these entries. * The current number of known bad entries is displayed in the statistics report. * Add context menu to reports to easily exclude entries.
2020-05-07Make CLI clip test more reliableJanek Bevendorff
2020-05-04Add "Size" columnOjas Anand
- Sizes are displayed in B, KiB, MiB, and GiB with 2 significant digits after the decimal - Column is hidden by default - TestEntryModel updated for testing proxy model
2020-05-02Refactor Config.Janek Bevendorff
Replaces all string configuration options with enum types that can be checked by the compiler. This prevents spelling errors, in-place configuration definitions, and inconsistent default values. The default value config getter signature was removed in favour of consistently and centrally default-initialised configuration values. Individual default values were adjusted for better security, such as the default password length, which was increased from 16 characters to 32. The already existing config option deprecation map was extended by a general migration procedure using configuration versioning. Settings were split into Roaming and Local settings, which go to their respective AppData locations on Windows. Fixes #2574 Fixes #2193
2020-04-09[CLI] On Unix, copy to clipboard using wl-clipboard if xclip is not available.Tezkerek
2020-03-19CLI: Cleanup create options (#4313)louib
* Add ability to create database with an empty password * Add password repeat check * Standardize process between `db-create` and `import` commands * Improve db-create tests with new password repeat Co-authored-by: Jonathan White <support@dmapps.us>
2020-03-14Bundle icons using the Qt resource system.Janek Bevendorff
Simplify resource loading logic and enable reproducible builds. Fixes #2582
2020-03-10Allow defining additional characters for the password generatorBenedikt Rascher-Friesenhausen
See issue #3271 for a motivation of this feature. This patch adds an additional text input to the advanced view of the password generator. All characters of this input field (if not empty) will be added as another group to the password generator. The characters from the excluded field have precedence over the characters from this new field, meaning any character added to both fields will *not* appear in any generated password. As the characters from this new field will be added as their own group to the password generator, checking the 'Include characters from every group' checkbox will force at least character to be chosen from the new input field. The `PasswordGenerator` class has also been changed so that the `isValid` method returns `true` if only characters from the new input field would be used. There is a new, simple test that covers the new feature. While the test only uses ASCII characters, any Unicode characters can be used with the new feature.
2020-03-10SSH Agent: Integration tests against ssh-agentToni Spets
Windows testing is currently explicitly disabled due to too many different scenarios to run an agent and MSYS2 having its own.