Kunzisoft / KeePassDX

Lightweight vault and password manager for Android, KeePassDX allows editing encrypted data in a single file in KeePass format and fill in the forms in a secure way.
https://www.keepassdx.com/
GNU General Public License v3.0
4.29k stars 260 forks source link

Unlocking Vault zero bytes it instead of opening it #1799

Closed Oclair closed 2 months ago

Oclair commented 2 months ago

I use Keepassdx on two android devices as I am now setting up the Grapheneos replacement of the Samsung phone. On the Grapheneos phone I am using the F-Droid version of both Nextcloud and KeePassDX. I have had absolutely no issues for a few days.

Now unlocking my vault on my Grapheneos phone zero bites the file and returns the error message "open failed: ENOENT (no such file or directory)".

Fortunately I have the vault open on my PC and have been editing entries to re write the vault to next cloud.

Note: The Google Play store on my Grapheneos phone was activated today before this new behavior started.

To Reproduce

  1. Go to KeepassDX
  2. Click on Open Existing vault
  3. Enter Password
  4. error displays: "open failed: ENOENT (no such file or directory)"
  5. file on Nextcloud server now has 0 bytes

Expected behavior

  1. Go to KeepassDX
  2. Click on Open Existing vault
  3. Enter Password
  4. opens vault
  5. file on Nextcloud server has not had its content deleted by opening it on KeepassDX

KeePass Database

KeePassDX:

Android:

Oclair commented 2 months ago

This bug is related to Nextcloud Android client version 3.28.1 doing this behavior see: https://github.com/nextcloud/android/issues/12801
https://help.nextcloud.com/t/warning-nextcloud-android-client-version-3-28-1-deletes-user-data-revert-back-to-3-28-0-f-droid/187042

Revert back to 3.28.0 (F-Droid).

gitch22 commented 2 months ago

THANK YOU! This was driving me crazy. Same OS, cloud, app.

nicolnt commented 2 months ago

Fixed with latest Nexcloud app (3.28.2). I've just tested on my phone.

https://help.nextcloud.com/t/warning-nextcloud-android-client-version-3-28-1-deletes-user-data-revert-back-to-3-28-0-f-droid/187042/8