mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Introduce a strict mode in KeePass2XmlReader.
Many errors are now ignored when not in strict mode so we can still parse files that have been written by broken/incomplete implementations.
This commit is contained in:
27
tests/data/BrokenDeletedObjects.xml
Normal file
27
tests/data/BrokenDeletedObjects.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<KeePassFile>
|
||||
<Root>
|
||||
<Group>
|
||||
<UUID>lmU+9n0aeESKZvcEze+bRg==</UUID>
|
||||
<Name>Test</Name>
|
||||
<Entry>
|
||||
<UUID>AaUYVdXsI02h4T1RiAlgtg==</UUID>
|
||||
<String>
|
||||
<Key>Title</Key>
|
||||
<Value>Sample Entry 1</Value>
|
||||
</String>
|
||||
</Entry>
|
||||
</Group>
|
||||
<DeletedObjects>
|
||||
<DeletedObject>
|
||||
<UUID/>
|
||||
<DeletionTime>2010-08-25T16:14:12Z</DeletionTime>
|
||||
</DeletedObject>
|
||||
<DeletedObject/>
|
||||
<DeletedObject>
|
||||
<UUID>5K/bzWCSmkCv5OZxYl4N/w==</UUID>
|
||||
<DeletionTime/>
|
||||
</DeletedObject>
|
||||
</DeletedObjects>
|
||||
</Root>
|
||||
</KeePassFile>
|
||||
20
tests/data/BrokenGroupReference.xml
Normal file
20
tests/data/BrokenGroupReference.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<KeePassFile>
|
||||
<Meta>
|
||||
<RecycleBinEnabled>True</RecycleBinEnabled>
|
||||
<RecycleBinUUID>6w7wZdhAp0qVlXjkemuCYw==</RecycleBinUUID>
|
||||
</Meta>
|
||||
<Root>
|
||||
<Group>
|
||||
<UUID>lmU+9n0aeESKZvcEze+bRg==</UUID>
|
||||
<Name>Test</Name>
|
||||
<Entry>
|
||||
<UUID>AaUYVdXsI02h4T1RiAlgtg==</UUID>
|
||||
<String>
|
||||
<Key>Title</Key>
|
||||
<Value>Sample Entry 1</Value>
|
||||
</String>
|
||||
</Entry>
|
||||
</Group>
|
||||
</Root>
|
||||
</KeePassFile>
|
||||
@@ -9,6 +9,7 @@
|
||||
<Key>Title</Key>
|
||||
<Value>Sample Entry 1</Value>
|
||||
</String>
|
||||
</Entry>
|
||||
</Group>
|
||||
</Root>
|
||||
</KeePassFile>
|
||||
|
||||
Reference in New Issue
Block a user