Bug 535810 (RHQ-2468) - EventManagerRemote.findByCriteria issues
Summary: EventManagerRemote.findByCriteria issues
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: RHQ-2468
Product: RHQ Project
Classification: Other
Component: CLI
Version: 1.3
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Jay Shaughnessy
QA Contact: Corey Welton
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard: Branch RHQ_1_3_0_GA_CP
Depends On:
Blocks: JON231
TreeView+ depends on / blocked
 
Reported: 2009-10-16 19:26 UTC by Jay Shaughnessy
Modified: 2010-08-12 16:59 UTC (History)
1 user (show)

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
remote client
Last Closed: 2010-08-12 16:59:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Jay Shaughnessy 2009-10-16 19:26:00 UTC
Issue 1: NPE generated when findByCriteria returns results

If the find succeeds in finding anything it blows up.   If you set fetchSource( true ) the problem is avoided.

Issue 2: The addFilterStartTime and addFilterEndTime are missing from the API

Issue 3: addFilterResourceGroupId blows up



Comment 1 Jay Shaughnessy 2009-10-19 21:24:04 UTC
All noted failure scenarios fixed.

Comment 2 Red Hat Bugzilla 2009-11-10 21:05:00 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2468


Comment 3 Jay Shaughnessy 2009-12-10 20:04:09 UTC
commit 15c5ab632360523f7ad37112700a1f2220163fb0

Comment 4 Corey Welton 2010-01-26 13:50:30 UTC
Need repro steps -- not sure how to reference the API calls in question.

Comment 5 Charles Crouch 2010-01-28 16:34:53 UTC
Back to Jay to put in some reproduction steps

Comment 6 Jay Shaughnessy 2010-01-28 19:05:59 UTC
Repro:

1) Generate some Events by enabling the default RHQ server log event source at INFO level.

2) CLI:

determine the resource id of the RHQ server
> findResources( "RHQ Server" )

> var c = new EventCriteria()
> var endTime = new Date().getTime()
> c.addFilterResourceId( rhqServerResourceId )
> c.addFilterStartTime( 0 )
> c.addFilterEndTime( endTime )
> EventManager.findEventsByCriteria(c)

Assuming this works as expected, returning all of the events for the RHQ Server, then try:

> c.addFilterResourceGroupId( 123 )

Just ensure this does not blow up. It should return no events.  If you want extra credit you could always put the RHQ server in a real group, get the group id and use it here. At which point the events should actually come back.

Comment 7 Corey Welton 2010-01-28 20:54:17 UTC
QA Verified!

Comment 8 Corey Welton 2010-08-12 16:59:48 UTC
Mass-closure of verified bugs against JON.


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