Issue 11918

search throws errors for bad requests

11918
Reporter: mdoering
Assignee: mdoering
Type: Bug
Summary: search throws errors for bad requests
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-09-18 11:34:16.804
Updated: 2013-12-06 12:06:32.983
Resolved: 2012-09-18 12:46:21.081
        
Description: If the solr search receives bad request, it throws a SearchException which gets converted to a 500 error in the webservices:

http://staging.gbif.org:8080/checklistbank-search-ws/search/?q=abies&rank=genus

The rank here is expected to be an integer (see CLB-199 for rank names as values)]]>
    


Author: mdoering@gbif.org
Comment: we could convert all SolrServerException to IllegalArgumentExceptions (instead of SearchException as we do now), but that might also be wrong cause I suspect solr exceptions also occur for solr server errors for example when the solr server is not available. We will need to understand the root exception behind the SolrServerException.
Created: 2012-09-18 12:11:42.018
Updated: 2012-09-18 12:12:05.223


Author: mdoering@gbif.org
Comment: http://code.google.com/p/gbif-common-resources/source/detail?r=1092
Created: 2012-09-18 12:46:21.111
Updated: 2012-09-18 12:46:21.111