Ticket #1504 (closed defect: fixed)

Opened 18 months ago

Last modified 18 months ago

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

Changed 18 months ago by dread

  • status changed from new to closed
  • resolution set to fixed

Fixed in cset:725670972371 on master, aimed for release 1.5.2.

Changed 18 months ago by dread

Cherry picked for 1.5.1.

Note: See TracTickets for help on using tickets.