choelzl / keepass-fidelity

Migrated to https://github.com/helcel-net/keepass-fidelity
https://github.com/helcel-net/keepass-fidelity
The Unlicense
6 stars 0 forks source link

After update, the entries are empty #3

Open alensiljak opened 3 months ago

alensiljak commented 3 months ago

Hi!

After the update, this is the state in the app:

Screenshot_20240630-104658_Keepass Fidelity

The individual entries just show "Title". There are no bar or QR codes.

Cheers

alensiljak commented 3 months ago

The workaround is to select items from KeePass again.

Also, I realized that a new entry has ho be created when adding a code. The fields will be populated automatically. I was previously selecting existing entries. Now your explanations make more sense.

choelzl commented 3 months ago

I dug into this and found the reason to be linked with the library Gson used to convert the data into a storable format, when creating the app it modifies slightly the "serialization model" breaking the old saved data. I will move to manually serialized model with next update to fix this problem. The broken entries can just be deleted (swipe) and reloaded from the database

alensiljak commented 3 months ago

Great that you found it, thanks!

I've refreshed the codes I had in KeePass. The ones that were not saved in the database were lost so I added back the ones I need and created the entries in the KeePass database for them. Now it should be fine.

Perhaps syncing the entries on startup (or even manually) would be a good option to have? Searching for the fidelity tag would provide a list, which can then be compared to the entries in the app. The user can be reminded to create the missing entries in KeePass, and the app list can be refreshed from KeePass for any entries added elsewhere. I could create a separate issue for this, if it would be useful.