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

Tests fails with XML-LibXML-2.0202 #167

Open
jplesnik opened this issue Jan 16, 2020 · 1 comment
Open

Tests fails with XML-LibXML-2.0202 #167

jplesnik opened this issue Jan 16, 2020 · 1 comment

Comments

@jplesnik
Copy link

The test t/parser-rdfxml-w3c.t failed with XML-LibXML-2.0202.

#   Failed test 'expected triples: /amp-in-url/test001 (parse_into_model)'
#   at t/parser-rdfxml-w3c.t line 288.
#          got: '<http://example/q?abc=1&#38;def=2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "xxx" .^M
# '
#     expected: '<http://example/q?abc=1&def=2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "xxx" .^M
# '
#   Failed test 'expected triples: /amp-in-url/test001 (parse_file_into_model)'
#   at t/parser-rdfxml-w3c.t line 288.
#          got: '<http://example/q?abc=1&#38;def=2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "xxx" .^M
# '
#     expected: '<http://example/q?abc=1&def=2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#value> "xxx" .^M
# '
# Looks like you failed 2 tests of 517.
t/parser-rdfxml-w3c.t ..............
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/517 subtests

It probably happened, because loading external DTDs or external entities is disabled by default in XML-LibXML-2.0202.

@ppisar
Copy link
Contributor

ppisar commented Jan 17, 2020

I believe this a bug in XML::LibXML::SAX https://rt.cpan.org/Ticket/Display.html?id=131498 that only fails to parse & entity (other numerical values entities are fine) in attribute values with a SAX interface.

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