Bug 615314 - Complex search for DOWN resource returning UP resources
Summary: Complex search for DOWN resource returning UP resources
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: SearchBar
Version: 3.0.0
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Charles Crouch
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-16 13:49 UTC by John Sanda
Modified: 2015-02-01 23:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-04 19:53:32 UTC
Embargoed:


Attachments (Terms of Use)

Description John Sanda 2010-07-16 13:49:47 UTC
Description of problem:
When I run the following search,

availability=down (plugin=platform | plugin=RHQAGENT | plugin=Apache)

it returns UP resources. The generated JPQL is,

SELECT resource
FROM Resource resource
WHERE ( resource.inventoryStatus = :inventoryStatus )
AND  (  (  ( resource.currentAvailability.availabilityType = 0 )  AND  ( LOWER(resource.name) LIKE '%(plugin=platform%' )  )  OR  ( LOWER(resource.resourceType.plugin) LIKE '%rhqagent%' )  OR  ( LOWER(resource.resourceType.plugin) LIKE '%apache%' )  )

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


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