-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not deserialize object to XML #61
Comments
I opened the kdbx file with KeePass2 on Ubuntu and saved the file without making changes. This allowed the file to be parsed by openkeepass successfully. This could be an issue with KeeWeb, which I used to create the file initially, although if the XML parser here were as lenient as the others that would be nice. |
I've managed to replicate the error, see attached file (password "demo"). The issue is due to Property, KeeWeb saves a null Value (ie Can you make Property.propertyValue nullable? Thanks. |
Thank you for the investigation. I will have a look at it. |
Thanks! Does keepass have a spec? Should we open this bug with KeeWeb also? If KeeWeb is creating nonstandard files this should probably be changed on their end also. |
@timendum It seems not to be a problem with the null Values. They should be working fine. |
Anyway I've also opened a ticket on keeweb and indeed KeePass opens file with null values. |
I think I've found the issue. The problem was that keeweb rearranged the XML tags and that messed up my decryption. I've tested with the attached database file and it seems to work now. |
Hi, I opened sorz/TinyKeePass#9 and then realized that TinyKeePass relies on this library, which is actually throwing the error.
I have a KeePass file that openkeepass cannot parse. It says "Could not deserialize object to XML." I wish I could provide the kdbx, but it contains real passwords.
The same kdbx can be opened properly with KeeWeb, KeePassDroid, and KeePass Tusk. It's possible the file is corrupted and these other tools are just very lenient when parsing the XML. I'm not sure how to check.
The text was updated successfully, but these errors were encountered: