[Koha-bugs] [Bug 12758] Failure when loading or parsing XSLT stylesheets over HTTPS

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 2 13:46:25 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12758

--- Comment #4 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
I have renamed this report to widen its scope.
Actually, I see here two related problems:

1) LibXML does not like https references when loading xml with the location
parameter. This can be resolved by reading the file into a string and passing
it to load_xml via the string parameter. (A solution within LibXML for https
appears not to be expected for now.)

Note btw bthat reading the file might not be working rightaway. If you
LWP::UserAgent to get the file contents, it will need LWP::Protocol::https.
This dependency was recently added to Koha as optional in the context of
OverDrive integration. Should we mark it as required now?

2) If the stylesheet (via local file, http or https) contains an import with a
https reference, LibXML can load it (possibly with the workaround under point
1), but LibXSLT will now fail parsing it with: "I/O warning : failed to load
external entity". This is harder to resolve; we should not be replacing imports
in xslt code ourselves. The problem seems to go down deeper to the libxml2 C
library.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list