We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Two XML tests in njs_unit_test.c fail:
njs_unit_test.c
njs("const xml = require('xml');let data = `<note><to b="bar" a= "foo" >Tove</to><from>Jani</from></note>`;let doc = xml.parse(data);var doc2 = xml.parse(`<n0:pdu xmlns:n0="http://a"></n0:pdu>`);doc.note.$tags = [doc.note.to, doc2];(new TextDecoder).decode(xml.c14n(doc))") expected: "<note xmlns:n0="http://a"><to a="foo" b="bar">Tove</to><n0:pdu></n0:pdu></note>" got: "<note></note>" njs("const xml = require('xml');let data = `<note><to b="bar" a= "foo" >Tove</to><from>Jani</from></note>`;let doc = xml.parse(data);var doc2 = xml.parse(`<n0:pdu xmlns:n0="http://a"></n0:pdu>`);doc.note.$tags = [doc2, doc.note.to];(new TextDecoder).decode(xml.c14n(doc))") expected: "<note xmlns:n0="http://a"><n0:pdu></n0:pdu><to a="foo" b="bar">Tove</to></note>" got: "<note></note>" xml tests: FAILED [44/46]
It’s failing even on njs 0.8.4, so it’s most likely related to the latest libxml2 version (2.13.4).
apk add build-base libedit-dev libxml2-dev openssl-dev pcre-dev expect ./configure make njs make test
All tests should pass.
The text was updated successfully, but these errors were encountered:
Can this be related to nginx/nginx#251 ?
Sorry, something went wrong.
I don’t think so, we have already applied the upstream patch https://gitlab.gnome.org/GNOME/libxml2/-/commit/efb57ddba3571928395644568444990e8ea831ea.
XML: fixed tests with libxml2 2.13 and later.
640d8f6
This fixes nginx#812 issue on Github.
21ce0d9
597b1fd
xeioex
No branches or pull requests
Describe the bug
Two XML tests in
njs_unit_test.c
fail:It’s failing even on njs 0.8.4, so it’s most likely related to the latest libxml2 version (2.13.4).
To reproduce
Expected behavior
All tests should pass.
Your environment
The text was updated successfully, but these errors were encountered: