Bug 1142263

Summary: [keepassxc] All passwords except latest one lost in group after closing database
Product: [openSUSE] openSUSE Tumbleweed Reporter: Fabian Niepelt <fniepelt>
Component: OtherAssignee: Martin Pluskal <mpluskal>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: alynx.zhou
Version: Current   
Target Milestone: ---   
Hardware: 64bit   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Fabian Niepelt 2019-07-20 18:23:21 UTC
Hello,

at first I wanted to report this bug upstream but I noticed that the bug does not appear in their official AppImage, so maybe it's got something to do with how openSUSE ships keepassxc?

## Expected Behavior
After creating a new password, all passwords in the same group are retained.

## Current Behavior
When I create a new password, save the database and then close the database, only the newest password in that group will be available after opening the database again. All other passwords are **lost** (thankfully I noticed this bug in a small group with passwords I can recover easily...).

Anything else accessing the database is disabled (e.g. Nextcloud synchronization and the Firefox keepassxc extension).

I have this behavior in my current database file and in newly created ones as well.

I *think* the bug appeared after I had upgraded to 2.4.3, but I am not sure if I even created a password while being on 2.4.2.

## Steps to Reproduce
1. Create a new database
2. Create two passwords in the Root group
3. Save and close the database
4. Reopen the database. Only the second password will be available.

## keepassxc Debug Info
KeePassXC - Version 2.4.3
Revision: 5d6ef0c

Qt 5.13.0
Debugging mode is disabled.

Operating system: openSUSE Tumbleweed
CPU architecture: x86_64
Kernel: linux 5.1.16-1-default

Enabled extensions:
- Auto-Type
- Browser-Integration
- SSH-Agent
- KeeShare (signed and unsigned sharing)
- YubiKey

Cryptographic libraries:
 libgcrypt 1.8.4
Comment 1 Fabian Niepelt 2019-09-01 11:33:11 UTC
The issue has been reported upstream and apparently the RDRAND issue with the new AMD Ryzen 3000 CPUs is at fault: https://github.com/keepassxreboot/keepassxc/issues/3415