Ticket #1316 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

/api/action uncaught exception if missing necessary parameter

Reported by: dread Owned by: kindly
Priority: minor Milestone:
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none


curl http://ckan.net/api/action/package_show -d '{"name": "uk-quango-data"}'

This gives 500 error due to KeyError? (it looked for the 'id' param), rather than 400.

Change History

comment:1 Changed 2 years ago by kindly

  • Status changed from new to closed
  • Resolution set to fixed

now get_or_bust function handles this.

Note: See TracTickets for help on using tickets.