Project

General

Profile

Actions

Defect #7135

closed

paging mechanism returns the same last page forever

Added by Alex Last over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Category:
REST API
Target version:
Start date:
2010-12-20
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I see something I believe is a bug in 1.0.4 version.

I'm trying to load all issues from Redmine using "page" and "per_page" parameters.
I don't see a way to understand which page was the last one because Redmine REST API keeps sending the same
page even when it should stop.

my request: get page 1 -> correct response.
my request: get page 2 -> correct response.
my request: get page 3 -> expected NO DATA because there should be 2 pages only, but Redmine resends the same last page (2) it returned before.

I'm attaching the log.
(I'm testing against Redmine on www.hostedredmine.org website. they have the last "1.0 stable" version)

I think the new paging mechanism (with limit and offset) should be integrated into 1.0* branch ASAP to solve these issues.

would be nice if someone could provide a valid example how to use paging with 1.0.4 version.


Files

redmine_restapi.log (91.7 KB) redmine_restapi.log Alex Last, 2010-12-20 06:59
Actions

Also available in: Atom PDF