-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
1
-
Severity 3 - Minor
-
Issue Summary
Asset object type attribute lists objects different from selected type if AQL filter is applied with OR clause.
Steps to Reproduce
- Have two ObjectType attributes referencing different objects on ObjType A:
- ObjType A "a1" references to ObjType B
- ObjType A "a2" references to ObjType C
- On ObjType B also create an attribute that references ObjType C
- Back on ObjType A set a AQL filter on a1 that will use the placeholder value of a2
a1 = ${a2} - The idea of this filter is that we will only bring the values of ObjType B that have a common reference to objects of ObjType C
- Filter works as expected and only retrieve objects from ObjType B
- However if we add "OR a1 is EMPTY" then the filter will no longer work and the attribute, despite being associated to ObjType B will retrieve objects from different types that also have a reference to ObjType C
Object Types Examples
Mock example created to replicate the issue:
ObjectType A presenting the broken attribute, listing objects from different types:
![]()
Expected Results
Filter works as expected and only retrieve objects from ObjType B, despite using "OR <attribute> is EMPTY" clause on AQL
Actual Results
Objects from different types are presented under the value selection on the attribute with AQL filter applied.
Workaround
Specify the Object Type on the AQL filter for the desired attribute. Following our example:
linkedLaptop = ${LinkedLaptop} OR linkedLaptop is EMPTY and ObjectType = "Windows Server"