today, the expression: resource.parent.trait[<some_trait>].startsWith = <some_value> bombs with the error: "Syntax error in your group definition: Trait name '[<some_trait>].startsWith' must be contained within '[' and ']' characters" the same happens if the "trait" expression token is replaced with "pluginConfiguration" and "resourceConfiguration". the substring matching should be supported regardless of which subexpression precedes it.
rev1217 - fix tokenization routine so that substring comparison methods (startsWith, endsWith, contains) work with bracketed expressions; add unit test method to verify proper operation of tokenization routine; added another unit test method to verify proper output of expression translation of bracketed expressions with substring comparisons;
rev1250, Verified expressions like the following evaluate correctly: resource.trait[Trait.hostname].startsWith = dev resource.trait[Trait.hostname].endsWith = com resource.trait[Trait.hostname].contains = dev16
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-682 This bug is duplicated by RHQ-708