Bugzilla – Attachment 54440 Details for
Bug 16615
OpenLibrary: always use SSL when referencing external resources
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16615: Open Library API fails for full-site-SSL
Bug-16615-Open-Library-API-fails-for-full-site-SSL.patch (text/plain), 2.04 KB, created by
Mark Tompsett
on 2016-08-14 17:01:16 UTC
(
hide
)
Description:
Bug 16615: Open Library API fails for full-site-SSL
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2016-08-14 17:01:16 UTC
Size:
2.04 KB
patch
obsolete
>From 2367f9c8357a5b343abbf5665758bb7ec41d09d9 Mon Sep 17 00:00:00 2001 >From: Oliver Bock <oliver.bock@aei.mpg.de> >Date: Mon, 30 May 2016 07:35:26 +0000 >Subject: [PATCH] Bug 16615: Open Library API fails for full-site-SSL > >When running Koha in a full-site-SSL configuration accessing >external resouces like Open Library cover images via HTTP >doesn't work (mixed SSL/non-SSL content). It thus breaks a >core feature of Koha. Referencing such resources always via >HTTPS resolves the problem and also enhances privacy as a >side-effect. > >Previous tickets took care of Amazon resources. This ticket >is supposed to address the remaining external resource providers, >starting with Open Library. > >TEST PLAN >--------- >1) Over https access your OPAC with the Enhanced Content system > preferences 'OpenLibraryCovers' set to 'Add', and > 'OpenLibrarySearch' set to 'Show'. >2) Search for something (e.g. Mo Willems) > -- Your browser console log will show messages about > mixed content. >3) Apply the patch >4) Making sure to reload the java script, attempt steps 1 & 2 > again. > -- no mixed content messages should be given >5) run koha qa test tools >--- > koha-tmpl/opac-tmpl/bootstrap/js/openlibrary.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/openlibrary.js b/koha-tmpl/opac-tmpl/bootstrap/js/openlibrary.js >index 318576a..871dad1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/js/openlibrary.js >+++ b/koha-tmpl/opac-tmpl/bootstrap/js/openlibrary.js >@@ -25,7 +25,7 @@ KOHA.OpenLibrary = new function() { > var scriptElement = document.createElement("script"); > scriptElement.setAttribute("id", "jsonScript"); > scriptElement.setAttribute("src", >- "http://openlibrary.org/api/books?bibkeys=" + escape(bibkeys) + >+ "https://openlibrary.org/api/books?bibkeys=" + escape(bibkeys) + > "&callback=KOHA.OpenLibrary.olCallBack&jscmd=data"); > scriptElement.setAttribute("type", "text/javascript"); > document.documentElement.firstChild.appendChild(scriptElement); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16615
:
51912
|
54440
|
54441
|
54442
|
54443
|
54444
|
54456
|
54462
|
54463
|
54464