Skip to content
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

Results from comparing XML could be better #28

Open
dguido opened this issue Sep 2, 2020 · 1 comment
Open

Results from comparing XML could be better #28

dguido opened this issue Sep 2, 2020 · 1 comment

Comments

@dguido
Copy link
Member

dguido commented Sep 2, 2020

Reporting on behalf of a user on Twitter:

Two identical XML files will incorrectly output a ton of text

# graphtage -v
Graphtage version 0.2.1
# keepassxc-cli export ~/Sync/Passwords-20200612_15-09-57.kdbx > 20200612_15-09-57.xml
# keepassxc-cli export ~/Sync/EstatePasswords-20200502_17-26-13.kdbx > 20200502_17-26-13.xml
# graphtage 20200502_17-26-13.xml 20200612_15-09-57.xml
... (lots of colored output)
# diff 20200502_17-26-13.xml 20200612_15-09-57.xml
... (no output because the files are identical)
# head -1 20200502_17-26-13.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

Here's a simple reproducer:

# cat 2.xml 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<KeePassFile>
<Meta>
</Meta>
</KeePassFile>
# cp 2.xml 1.xml
# graphtage 1.xml 2.xml
... (it spits out the full content in green and black of the entire file except for the XML header)
@mrlucmorin
Copy link

Same result here. I'm using sample XML data from:

https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms762271(v=vs.85)

Simply create two XML files containing the exact same content from page above, run graphtage like so:

graphtage.exe --from-xml --to-xml .\test1.xml .\test2.xml > result.xml

result.xml is an exact copy of the original XML file(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants