[ckan-dev] CKAN GeoJSON preview triggers internal server error on extension .geojson - use .json

Nigel Babu nigel.babu at okfn.org
Thu Feb 27 05:31:40 UTC 2014


Thanks Florian for the pull request!

We'll respond to it at the dev meeting later today.

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 27 February 2014 07:21, Florian May <florian.wendelin.mayer at gmail.com>wrote:

> Hi all,
>
> here's an embarrassing pitfall I'd like to share re GeoJSON preview.
> Attaching a GeoJSON file as a resource with the perfectly legal file
> extension ".geojson" will trigger an internal server error on retrieval of
> the file, making both download and preview impossible.
>
> The embarrassingly simple solution was to use the extension ".json" for
> GeoJSON files, but still register them as format "geojson" in the "attach
> resource" form. All error messages (logs, firebug, request headers) were
> absolutely not helpful, and web searches didn't get me onto the right path
> either.
>
> Seems others have run into the same error just now:
> https://github.com/ckan/ckan/issues/1534
>
> A simple note to use .json for GeoJSON resources in the user guide might
> go a long way though, as normal end users are not likely to discover the
> above github issue. I've submitted this change to the user docs as pull
> request https://github.com/ckan/ckan/pull/1553
>
> Hope that helps!
>
> Cheers,
> Florian
>
> Dept Parks and Wildlife, WA
> http://data-demo.dpaw.wa.gov.au/
>
> _______________________________________________
> 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/20140227/92c75999/attachment-0003.html>


More information about the ckan-dev mailing list