Red Hat Bugzilla – Bug 536475
group def allows string functions to be suffixed onto non-string types, but then blows up during calcuation
Last modified: 2014-11-09 17:50:23 EST
basically, instead of allowing the creation of the expression, and then blowing up later...it should disallow the creation and provide a convenient error message. if a user enters an expression like:
resource.id.contains = 42
it should print a message along the lines of "can not apply a string function to an expression that resolves to an integer type"
rev1415 - disallow the application of string functions to expressions that are known not to resolve to strings;
So the issue in the above example is the .id not the 42 right? So this wouldn't work either
resource.id.contains = myString
resource.pluginConfiguration[port] = 8080
where port is an integer will work, at least now that RHQ-803 is fixed?
Now get "Syntax error in your group definition: Can not apply a string function to an expression that resolves to Integer "
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-821