Ticket #1505 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

SearchError and SearchQueryError cause exception in Action API

Reported by: dread Owned by: dread
Priority: minor Milestone: ckan-sprint-2011-12-05
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

This query caused ckan to except because ckan/controllers/api.py doesn't catch SearchError? and SearchQueryError?:

curl http://localhost:5000/api/action/package_search -d '{"sort": "metadata_modified"}'

Change History

comment:1 Changed 2 years ago by dread

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

Also added tests for search_package api. Done in cset:edde51c aiming for release 1.5.2.

comment:2 Changed 2 years ago by dread

Fix cherry-picked for 1.5.1.

Note: See TracTickets for help on using tickets.