Ticket #1504 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years 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


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

comment:1 Changed 2 years 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.

comment:2 Changed 2 years ago by dread

Cherry picked for 1.5.1.

Note: See TracTickets for help on using tickets.