Project

General

Profile

Bug #2458

demo2 not respecting "start" parameter for getLogRecords

Added by Dave Vieglais over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
Metacat
Start date:
2012-03-08
Due date:
% Done:

100%

Milestone:
CCI-1.0.0
Product Version:
*
Story Points:
Sprint:

Description

For example:

curl -k "https://demo2.test.dataone.org/knb/d1/mn/v1/log?start=1590&count=100"

appears to return all records starting at 0

History

#1 Updated by Ben Leinfelder over 12 years ago

There are only 1551 total records at this point, so your starting point is out of bounds. It should really return 0 entries in this case. I will finesse it to check for these out of bounds cases and double check that normal cases behave as expected.

#2 Updated by Ben Leinfelder over 12 years ago

  • Status changed from New to Closed

use start and count parameters with special cases as follows:
-if start+count exceeds the total number of records, then only return from start to the end of the list
-if start exceeds total record count, start at the end of the list (which will return an empty list)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)