Issue 12555

search response shows wrong limit

12555
Reporter: mdoering
Assignee: mdoering
Type: Bug
Summary: search response shows wrong limit
Priority: Critical
Resolution: Fixed
Status: Closed
Created: 2012-12-19 22:17:32.609
Updated: 2013-12-17 15:16:45.934
Resolved: 2012-12-20 10:09:03.282
        
Description: The search response limit property should always be the same as the limit requested.
When a search hits the last page though the limit appears to be set to the number of records returned:

http://staging.gbif.org:8080/occurrence-ws/occurrence/search?TAXON_KEY=2435099&limit=20&offset=7080

Even though the request uses a limit of 20, the response says the limit was 10!
This causes trouble on the paging UI, see POR-416]]>
    


Author: mdoering@gbif.org
Comment: http://code.google.com/p/gbif-occurrencestore/source/detail?r=1750
Created: 2012-12-20 10:09:03.35
Updated: 2012-12-20 10:09:03.35