Ticket #1504 (closed defect: fixed)
Action API given blank data causes exception
Reported by: | dread | Owned by: | dread |
---|---|---|---|
Priority: | minor | Milestone: | ckan-sprint-2011-12-05 |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description
This is what caused the exception:
curl http://localhost:5000/api/action/package_search -d='{"q": "osm"}'
The problem is the content-type is formencoding, the '=' is the first character of the request, and so internally the data_dict is set to ' ', which needs to be a dictionary.
Change History
Note: See
TracTickets for help on using
tickets.
Fixed in cset:725670972371 on master, aimed for release 1.5.2.