keepass2android icon indicating copy to clipboard operation
keepass2android copied to clipboard

[BUG] modifying entry via this app breaks the whole database

Open aronmgv opened this issue 3 months ago • 7 comments

Checks

  • [x] I have read the FAQ section, searched the open issues, and still think this is a new bug.

Describe the bug you encountered:

I just modified one of the string fields for one entry and it breaks the whole database! See the screenshots..

The kdbx file is suddenly 0 byes in size. Since I'm modifying it directly it corrupted the file remotely. Luckily I have a backup but this is serious.

I'm on Android 15, latest app version (just got updated today).

Describe what you expected to happen:

No response

What version of Keepass2Android are you using?

1.14-r0

Which version of Android are you on?

15

aronmgv avatar Sep 27 '25 13:09 aronmgv

I can confirm this bug, faced the same issue today. Issue happened with remotely connected Nextcloud: added entry, saved, error. restored backup from outside of keepass2android.

Keepass2Android Version: 1.14-r0 Android Version: 14

callmeconnor avatar Sep 27 '25 15:09 callmeconnor

if you are using Webdav, this should be fixed by 1.14-r1. Can you please test this?

PhilippC avatar Sep 27 '25 16:09 PhilippC

Yes, it's fixed in that version.

callmeconnor avatar Sep 27 '25 16:09 callmeconnor

My database ist secured via challenge response mechanism. After a sync of the database the kdbx is fine but the XML is broken. Could this issue be related to the same root cause? O am also using version 1.14-r0.

schmidtch89 avatar Sep 30 '25 01:09 schmidtch89

@schmidtch89 if the xml is stored on Webdav, please switch to 1.14-r1.

PhilippC avatar Sep 30 '25 06:09 PhilippC

@PhilippC Is the fix doing the rename now? I see my database being copied as .bak and then renamed. The original database is deleted on the Nextcloud. This breaks the file history, and I don't like that. It used to just overwrite the file.

cardil avatar Nov 24 '25 09:11 cardil

@cardil please disable file transactions in settings/app/file handling to get the old behavior.

PhilippC avatar Nov 25 '25 07:11 PhilippC