Bug 1029996 - Resource paging does not correctly respect defaults
Summary: Resource paging does not correctly respect defaults
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: REST
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: DR01
: JON 3.3.0
Assignee: Libor Zoubek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 16:33 UTC by Libor Zoubek
Modified: 2015-11-02 00:43 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-12-11 14:01:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Libor Zoubek 2013-11-13 16:33:30 UTC
Description of problem:

There are 2 defatults that are not correctly handled by rest api resource paging.

1. GET /resource/

Actual results: according to docs it should return 20 resources as default pagesize, but it returns more 

Expected results: Docs should be fixed (I guess there is a typo and it should be 200)

2. GET /resource/?ps=5

Actual results: api still returns more resources, using ps=5&page=0 solves the issue, thus page default=0 is not used

Expected results: api should return 5 resources and expect page=0


Version-Release number of selected component (if applicable):
JON 3.2.0.ER5

How reproducible: always

Comment 1 Libor Zoubek 2014-07-09 12:30:06 UTC
in master

commit 400a95123fe9c57e6668bdf5003ef621b7050b73
Author: Libor Zoubek <lzoubek>
Date:   Wed Jul 9 14:28:35 2014 +0200

    Bug 1029996 - Resource paging does not correctly respect defaults

    Default page index set to 0

Comment 2 Simeon Pinder 2014-07-31 15:52:06 UTC
Moving to ON_QA as available to test with brew build of DR01: https://brewweb.devel.redhat.com//buildinfo?buildID=373993


Note You need to log in before you can comment on or make changes to this bug.