Bug 746277

Summary: alerts list view: invalid PageControl exception can occur after deleting all Alerts and then refreshing
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Core UIAssignee: Ian Springer <ian.springer>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.1CC: ccrouch, hrupp, skondkar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Springer 2011-10-14 15:40:29 UTC
Repro steps:

1) Go to a Resource's Alerts > History view. Make sure it contains at least 200 or so alerts.
2) Scroll all the way to the bottom of the table and wait for the data to fully load.
3) Click the Delete All button to delete all alerts.
4) Once the Refresh button becomes enabled, click it repeatedly. 

You should get an error message with details similar to the following:

"IllegalArgumentException: PageList was passed an empty collection but 'totalSize' was 0, PageControl[firstRow=229, size=50]"

Comment 1 Ian Springer 2011-10-14 19:47:46 UTC
[master c896632] (http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commit;h=c896632) fixes this.

Comment 2 Sunil Kondkar 2011-10-18 07:31:00 UTC
Verified on build#540 (Version: 4.1.0-SNAPSHOT Build Number: 1919b71)

There were about 380 alerts fired on a resource. Navigated to Resource's Alerts > History view. Scrolled to the bottom and after the data is loaded, clicked on 'Delete All' button. Clicked 'Refresh' button repeatedly and verified that no exception is displayed.

Comment 3 Mike Foley 2012-02-07 19:30:44 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE

Comment 4 Mike Foley 2012-02-07 19:30:46 UTC
marking VERIFIED BZs to CLOSED/CURRENTRELEASE