[ckan-dev] json_preview error

Dominik Moritz dominik.moritz at okfn.org
Thu Jun 6 14:02:39 UTC 2013


Hi,

The problem is the resource_proxy plugin which fails for chunked
responses [1]. This will be fixed in 2.0.1 which will be relased quite
soon.

It works if you disable the plugin because the resource proxy is not
used since the same origin policy[2] does not affect direct previews
in an iframe.

Best wishes,
Dominik

[1] https://github.com/okfn/ckan/pull/896
[2] https://en.wikipedia.org/wiki/Same_origin_policy
Dominik Moritz
CKAN developer  |  skype: d.moritz  |  @doobly_doo
The Open Knowledge Foundation
Empowering through Open Knowledge
http://okfn.org/  |  @okfn  |  http://ckan.org  |  @CKANproject


On 6 June 2013 15:13, Luis <eltipicoemail at gmail.com> wrote:
> Hi all,
>
> I have CKAN 2.0 successfully installed but I can't preview JSON files.
> Everytime I try to preview a JSON the following error message appears:
>
> An error occured: error, Error: NETWORK_ERR: XMLHttpRequest Exception 101
>
>
> If I disable json_preview plugin in my production.ini then JSON are
> previewed but without syntax highlighting. That's why I think the problem is
> with the json_preview plugin.
>
> In my production.ini I have:
>
> ckan.plugins = stats json_preview recline_preview spatial_query
> spatial_metadata wms_preview datastore datastorer
>
> Could anyone help me to fix this?
>
> Cheers,
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>




More information about the ckan-dev mailing list