Issue 11527
Handle invalid search requests
11527
Reporter: mdoering
Assignee: fmendez
Type: Improvement
Summary: Handle invalid search requests
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-07-02 17:23:55.194
Updated: 2013-12-09 13:40:57.901
Resolved: 2012-07-06 10:52:28.419
Description: An invalid seaarch request like the following throws an NPE:
http://jawa.gbif.org:8080/checklistbank-search-ws/search?q=Bedouin&ff.checklist=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c
Catch those errors and convert them into an IllegalArgumentException so we get a http 400 instead]]>
Author: mdoering@gbif.org
Created: 2012-07-02 17:25:38.249
Updated: 2012-07-02 17:25:38.249
This would be the correct url:
http://jawa.gbif.org:8080/checklistbank-search-ws/search?q=Bedouin&facet=CHECKLIST&ff.CHECKLIST=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c
Should we make facet params case insensitive?