Bug 746277 - alerts list view: invalid PageControl exception can occur after deleting all Alerts and then refreshing
Summary: alerts list view: invalid PageControl exception can occur after deleting all ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Ian Springer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-14 15:40 UTC by Ian Springer
Modified: 2013-08-06 00:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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


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