keepassdroid icon indicating copy to clipboard operation
keepassdroid copied to clipboard

Unable to open database in KDBX 4.1 format

Open m8ram opened this issue 3 years ago • 4 comments

Today I noticed that I'm no longer able to open my KeePass Database in Keepassdroid.

The error I get is:

Wrong event type (position:TEXT False@463:25 in java.io .InputStreamReader@2676cc4)

I use the database daily on Windows 10. I recently upgraded to the latest version (2.48.1) on Windows 10 and started using the features that require the KDBX 4.1 format.

If I create a new database (on Windows) and sync it to Android it opens without issue. If I then disable the password quality estimation for one entry and sync the database again the error is shown.

m8ram avatar May 12 '21 18:05 m8ram

I have two sample databases available but can't find a way to attach them. But it is easy enough to create a database with the default options to reproduce the issue.

m8ram avatar May 12 '21 18:05 m8ram

mines similar... it also seems i can no longer open from OneDrive it used to work.... now it doesn't and when i do is when i get the similar error.

nidonato avatar May 15 '21 14:05 nidonato

I guess this will stop all users of KeePassDroid from updating to the latest version of the Windows app. Is there any fix in the works...?

KeePass 2.48 released Changes from 2.47 to 2.48: New KDBX 4.1 file format, which supports various new features...

gitawayu avatar Jun 01 '21 06:06 gitawayu

For those who have inadvertently upgraded their KeePass database note that you can revert to version 4.0 by simply reverting the changes that force the new format.

Full details in the sourceforge ticket I opened.

In my case I had activated the feature to disable the quality check for some entries. That can be reverted as follows (thanks to Dominik Reichl):

If you want to turn on the quality estimation for all entries (the default), you could run XML Replace (menu 'Tools' → 'Database Tools' → 'XML Replace') with the following parameters:

Select nodes: //Entry/QualityCheck Action: Remove nodes.

Hope this helps

m8ram avatar Jun 03 '21 07:06 m8ram