Actions
Bug #18133
closedGroup query with OR composition and searching for Node properties return less results than expected
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Nodes & inventories
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Error - Fixed
Regression:
Description
When we do a query with OR composition, and at least a search criteria Node properties or Node State, the result show less results than expected.
in fact it show only the result that are the intersection of the node properties query and the other criterions
let say I have 3 Nodes, A, B, C, with C having a property 'query', and A and B belonging to group foo
if i create a group bar, with the composition OR, and criterion:- belonging to group foo
- having a property 'query'
I will have 0 Nodes that match, although I expect 3 nodes (A,B from first criteria, C from second)
if C was in group foo, i would have only C as a result
The bug is that when looking for node information, we don't use the composition operator defined between classic(inventory) criterion and node (NodeInfo) criterion, but use only && instead
Actions