Description of problem: Version-Release number of selected component (if applicable): RHQ 4.10.0 How reproducible: always Steps to Reproduce: 1. have EAP6 in domain mode 3. create a dynagroup with following expression: resource.type.plugin = JBossAS7 resource.type.name = Managed Server groupby resource.resourceConfiguration[group] 4. hit recalculate Actual results: 4 groups are generated, including groups full-sockets and full-ha-sockets. But those 2 does not come from 'group' config property value, but from 'server-group' config property http://tinypic.com/view.php?pic=25gxizn&s=8#.UzKks3X221k Expected results: Groups based on 'server-group' property value must not be created. Additional info:
This is what comes out of dg expression SELECT res.id FROM Resource res JOIN res.resourceConfiguration conf, PropertySimple simple, PropertyDefinition simpleDef JOIN res.resourceType.resourceConfigurationDefinition confDef WHERE res.resourceType.plugin = :arg1 AND res.resourceType.name = :arg2 AND simple.name LIKE :arg3 ESCAPE '\' AND simple.stringValue = :arg4 AND res.inventoryStatus = org.rhq.core.domain.resource.InventoryStatus.COMMITTED AND simple.configuration = conf AND simpleDef.configurationDefinition = confDef AND simple.name = simpleDef.name AND simpleDef.type != 'PASSWORD' "simple.name LIKE :arg3" has to be changed to "simple.name = :arg3"
Can we make sure that old existing expressions continue to work E.g. by saying resource.resourceConfiguration[group] is a LIKE query and resource.resourceConfiguration["group"] is a = query may also need an additional checkbox field in the wizzard popup to allow to select exact / like matching.
Verified that a query is strict by default on Version : 4.12.0-SNAPSHOT Build Number : 494e428
Bulk closing of RHQ 4.11 issues, now that RHQ 4.12 is out. If you find an issue with those, please open a new BZ, linking to the old one.