[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 14:13:21 CEST 2014


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

--- Comment #5 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 31974
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31974&action=edit
Bug 12758: Workaround for loading stylesheets over https

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.

Note that LWP::UserAgent will only load the file if LWP::Protocol::https
is installed. This is an optional perl dependency in Koha. I mark it as
required now.

Also note that if your stylesheet contains an import with a https
reference, this fix is not enough. The load_xml call will not fail, but
the succeeding call to parse_stylesheet will still fail. As a workaround,
make your import file accessible via http.

NOTE: Some code taken from report 12172. With thanks to Martin Renvoize.

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


More information about the Koha-bugs mailing list