Ticket #1540 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Search API returns an error if empty parameters are provided

Reported by: amercader Owned by: amercader
Priority: major Milestone: ckan-sprint-2012-01-09
Component: ckan Keywords: search
Cc: Repository: ckan
Theme: none


Both in 1.5.1b:


and 1.5.2a (current master):


Although the error message in 1.5.2a is more verbose:

"Bad request - Bad search option: HTTP code=400, reason=org.apache.lucene.queryParser.ParseException?: Cannot parse 'groups:lodcloud title:': Encountered \"<EOF>\" at line 1, column 22. Was expecting one of: \"(\" ... \"*\" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... \"[\" ... \"{\" ... <NUMBER> ..."

Some parameter validation before sending it to Solr should do the trick

Change History

comment:1 Changed 2 years ago by amercader

  • Owner set to amercader
  • Status changed from new to assigned
  • Milestone changed from current-ckan-sprint-2011-12-19 to ckan-sprint-2012-01-09

comment:2 Changed 2 years ago by amercader

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

Fixed in b80da7a4fe

Note: See TracTickets for help on using tickets.