Closed HifeFish closed 5 months ago
The problem comes from Dropbox, which doesn't manage file caches properly. https://github.com/Kunzisoft/KeePassDX/wiki/File-Manager-and-Sync#file-manager-application
Have you contacted the Dropbox team and what did they say about this?
There's already a cache that prevents the file stream from being written if an exception is raised. Obviously, this can only work if the Dropbox application manages its errors and raises exceptions.
Behavior has been improved with the cache, linked to #1680
Describe the bug
Every now and then, KeepassDX overwrites the database with an empty file.
To Reproduce
Steps to reproduce the behavior: I am not sure what triggers the problem. Possibly related to being flushed from memory in the background while trying to generate or save login data entered in Firefox.
Expected behavior
Never overwrite the database with an empty file. Possibly one could write a new file before deleting the old one in case a crash occurs while writing the database.
KeePass Database
content://
URI):content://com.dropbox.product.android.dbapp.document_provider.documts/document/LONG ALPHANUMERIC STRING
KeePassDX:
Android:
Additional context
-