Ticket #3029 (assigned defect)
JSONP parameter scuppers Search in API
| Reported by: | dread | Owned by: | seanh |
|---|---|---|---|
| Priority: | awaiting triage | Milestone: | |
| Component: | ckan | Keywords: | |
| Cc: | Repository: | ckan | |
| Theme: | none |
Description
http://datahub.io/api/2/search/package?jsonp=jsonpcallback&q=canada returns
{"count": 0, "results": []}
I believe this worked in CKAN 1.4 or 1.5, but it is broken on 1.7.1, 1.8 and whatever demo.ckan.org is running. I suspect the jsonpcallback parameter is getting sent to SOLR.
This bug prevents using javascript on another site to search CKAN (although hopefully the action API would work).
Change History
Note: See
TracTickets for help on using
tickets.

Fix done here: https://github.com/datagovuk/ckan/commit/b6ad63d58dd6c0cc51677fa66c575179f908d050 which you're welcome to pull.