Bug 1080909
| Summary: | DynaGroup expression evaluator is not strict when grouping by resource configuration property | |||
|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Libor Zoubek <lzoubek> | |
| Component: | Core Server | Assignee: | Libor Zoubek <lzoubek> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.10 | CC: | fbrychta, hrupp, theute | |
| Target Milestone: | --- | |||
| Target Release: | RHQ 4.11 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1090130 (view as bug list) | Environment: | ||
| Last Closed: | 2014-07-21 10:13:51 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1069544, 1090130 | |||
|
Description
Libor Zoubek
2014-03-26 10:03:16 UTC
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. |