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

M. de Rooy <m.de.r...@rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #31974|0                           |1
        is obsolete|                            |

--- Comment #6 from M. de Rooy <m.de.r...@rijksmuseum.nl> ---
Created attachment 31975
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31975&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.

Test plan:
Take for example OPACXSLTDetailsDisplay and replace it by a https ref.
Check opac detail display.
Note that replacing OPACXSLTResultsDisplay by some https ref would also test
repeating the call.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to