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
xml with dtd entities makes yq print nothing #1155
Comments
Output
Setting strict to false solves the issue. I think having a |
Thanks for looking into this! I'll put that in the next release |
Hey just tried catching the error and setting strict to false - it ends up doing the exact same thing as now - prints nothing :( I'll still fix the unhandled error bug - not sure on adding the Strict=false option though as it doesn't seem particularly useful - unless I'm mistaken? |
It looks like returning the error breaks all xml as EOF is an error. Below change works for me.
Output:
|
Got it cheers 👍🏼 will have a fix in the next release |
Fixed in 4.24.2 - note that strict is false by default, thanks for all your help! |
Awesome! Thank you. |
Describe the bug
When the input xml has dtd entities, nothing is printed in output
Version of yq: 4.22.1
Operating system: linux
Installed via: snap
Input XML
Working foo.xml:
Not Working foo.xml:
Command
The command I ran:
Actual behavior
Expected behavior
The text was updated successfully, but these errors were encountered: