Bug 1158516

Summary: Number of platforms retrieved using REST can't be modified using ps param and is always limited to 100
Product: [JBoss] JBoss Operations Network Reporter: Radim Hatlapatka <rhatlapa>
Component: RESTAssignee: Libor Zoubek <lzoubek>
Status: CLOSED CURRENTRELEASE QA Contact: Radim Hatlapatka <rhatlapa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: JON 3.3.0CC: theute
Target Milestone: CR01   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-11 14:04:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Radim Hatlapatka 2014-10-29 14:35:38 UTC
It is not possible to configure number of platforms send via REST using ps query param resulting to max limit of 100 resources.

When having big topology with many agents this limitation can prevent you accessing some of the agents via REST api.

Comment 1 Heiko W. Rupp 2014-10-29 15:08:25 UTC
IIrc platforms can still be looked at via the normal resource search which should correctly support paging ( e.g. go to GET /resource?category=PLATFORM  ).
Also agents can be found via normal resource search

Comment 2 Libor Zoubek 2014-10-29 15:32:49 UTC
branch:  master
link:    https://github.com/rhq-project/rhq/commit/79a063c13
time:    2014-10-29 16:31:15 +0100
commit:  79a063c13562d94dcd02d77598bc965f64c75171
author:  Libor Zoubek - lzoubek
message: Bug 1158516 - Number of platforms retrieved using REST can't be modified 
         using ps param and is always limited to 100
         set @DefaultValue to 0 for page parameter. Without that paging
         was disabled unless page query parameter was specified.


branch:  release/jon3.3.x
link:    https://github.com/rhq-project/rhq/commit/73e845e15
time:    2014-10-29 16:32:10 +0100
commit:  73e845e155b2c665c9d098521490e9c78e56522e
author:  Libor Zoubek - lzoubek
message: Bug 1158516 - Number of platforms retrieved using REST can't be modified 
         using ps param and is always limited to 100
         set @DefaultValue to 0 for page parameter. Without that paging
         was disabled unless page query parameter was specified.
         (cherry picked from commit
         79a063c13562d94dcd02d77598bc965f64c75171) Signed-off-by: Libor
         Zoubek <lzoubek>

Comment 3 Simeon Pinder 2014-11-03 19:03:41 UTC
Moving to ON_QA as available to test with latest brew build:
https://brewweb.devel.redhat.com//buildinfo?buildID=396547

Comment 4 Radim Hatlapatka 2014-11-04 15:56:33 UTC
Verified with JON 3.3.0.CR1