[ckan-dev] JavaScript issues using https

Nigel Babu nigel.babu at okfn.org
Fri Apr 4 05:16:54 UTC 2014


Hello,

This is definitely a CKAN bug. I've filed an issue to track it
https://github.com/ckan/ckan/issues/1632.

Nigel Babu

Developer  |  @nigelbabu <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform


On 2 April 2014 02:09, Aníbal Pacheco <anibal.pacheco at agesic.gub.uy> wrote:

> Yes, it does (is not called production.ini but it has this setting with
> https).
>
>
> On 01/04/14 17:33, Vitor Baptista wrote:
>
>> Hi Aníbal,
>>
>> What have you put in your ckan.site_url in production.ini? Does the site
>> URL contains https?
>>
>> Cheers,
>>
>>
>> 2014-03-28 14:22 GMT-03:00 Aníbal Pacheco <anibal.pacheco at agesic.gub.uy
>> <mailto:anibal.pacheco at agesic.gub.uy>>:
>>
>>     Sure Vitor, here: https://catalogodatos.gub.uy/__organization
>>
>>     <https://catalogodatos.gub.uy/organization>
>>     Thanks
>>
>>
>>     On 27/03/14 19:59, Vitor Baptista wrote:
>>
>>         Hi Aníbal,
>>
>>         Could you post a link to the page where you're seeing this issue?
>>
>>         Cheers,
>>
>>
>>         2014-03-27 16:31 GMT-03:00 Aníbal Pacheco
>>         <anibal.pacheco at agesic.gub.uy <mailto:anibal.pacheco at agesic.
>> gub.uy>
>>          <mailto:anibal.pacheco at agesic.__gub.uy
>>
>>         <mailto:anibal.pacheco at agesic.gub.uy>>>:
>>
>>
>>              Hello, I'm facing a problem when loading /api/i18n/... when
>>         the site
>>              is used under https, the browser prevents to load thigs
>>         from http,
>>              here is the error in firebug (sorry for the spanish version):
>>
>>                  Se bloqueó la carga del contenido activo mixto
>>                  "http://catalogodatos.gub.uy/____api/i18n/es
>>         <http://catalogodatos.gub.uy/__api/i18n/es>
>>                  <http://catalogodatos.gub.uy/__api/i18n/es
>>         <http://catalogodatos.gub.uy/api/i18n/es>>"
>>         https://catalogodatos.gub.uy/____fanstatic/vendor/:version:_
>> ___2014-03-18T16:20:19.93/jquery.____min.js
>>
>>         <https://catalogodatos.gub.uy/__fanstatic/vendor/:version:__
>> 2014-03-18T16:20:19.93/jquery.__min.js>
>>
>>
>>         <https://catalogodatos.gub.uy/__fanstatic/vendor/:version:__
>> 2014-03-18T16:20:19.93/jquery.__min.js
>>         <https://catalogodatos.gub.uy/fanstatic/vendor/:version:
>> 2014-03-18T16:20:19.93/jquery.min.js>>
>>                  Line 524
>>
>>
>>              This error is causing that for example the layout in the
>>              organizations view can't finish to render and the blocks
>>         get unaligned.
>>              Ok, I can fix this issue with this patch:
>>
>>              --- a/ckan/public/base/javascript/____client.js
>>              +++ b/ckan/public/base/javascript/____client.js
>>
>>
>>              @@ -102,7 +102,7 @@
>>                     * Returns a jQuery xhr promise.
>>                     */
>>                    getLocaleData: function (locale, success, error) {
>>              -      var url = this.url('/api/i18n/' + (locale || ''));
>>              +      var url =
>>         this.url('https://__catalogoda__tos.gub.uy/api/i18n/
>>         <http://catalogodatos.gub.uy/api/i18n/>
>>              <https://catalogodatos.gub.uy/__api/i18n/
>>
>>         <https://catalogodatos.gub.uy/api/i18n/>>__' + (locale || ''));
>>                      return jQuery.getJSON(url).then(____success, error);
>>
>>
>>                    },
>>
>>
>>              But when i fix it, I get my select boxes broken again like
>>         I post a
>>              few days ago in a post subject "Problem with select boxes"
>>
>>              Any thoughts? Thank you!
>>
>>  _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140404/f734b039/attachment-0003.html>


More information about the ckan-dev mailing list