Issue 11801

ws returns empty json list for non existing usage id

11801
Reporter: mdoering
Assignee: mdoering
Type: Bug
Summary: ws returns empty json list for non existing usage id
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-08-31 12:16:50.023
Updated: 2013-12-09 14:01:22.412
Resolved: 2013-09-05 15:17:40.314
        
Description: http://staging.gbif.org:8080/checklistbank-ws/name_usage/52194045432543253425342

it should be throwing an http 404 instead.]]>
    


Author: mdoering@gbif.org
Created: 2012-08-31 12:17:39.394
Updated: 2012-08-31 12:17:39.394
        
seems to be cause by the number not being a java integer.
This throws a 404:

http://staging.gbif.org:8080/checklistbank-ws/name_usage/-10
    


Author: mdoering@gbif.org
Created: 2013-09-05 15:17:40.355
Updated: 2013-09-05 15:17:40.355
        
this throws a 404:
http://staging.gbif.org:8080/checklistbank-ws/name_usage/521940454325432534253426543654423423