Bug 536475 (RHQ-821) - group def allows string functions to be suffixed onto non-string types, but then blows up during calcuation
Summary: group def allows string functions to be suffixed onto non-string types, but t...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-821
Product: RHQ Project
Classification: Other
Component: Inventory
Version: 1.1pre
Hardware: All
OS: All
low
medium
Target Milestone: ---
: ---
Assignee: Joseph Marques
QA Contact: Jeff Weiss
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: RHQ-399
TreeView+ depends on / blocked
 
Reported: 2008-09-10 13:30 UTC by Joseph Marques
Modified: 2014-11-09 22:50 UTC (History)
1 user (show)

Fixed In Version: 1.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Joseph Marques 2008-09-10 13:30:00 UTC
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"

Comment 1 Joseph Marques 2008-09-10 13:33:44 UTC
rev1415 - disallow the application of string functions to expressions that are known not to resolve to strings; 

Comment 2 Charles Crouch 2008-09-10 14:40:48 UTC
So the issue in the above example is the .id not the 42 right? So this wouldn't work either

resource.id.contains = myString

but

resource.pluginConfiguration[port] = 8080

where port is an integer will work, at least now that RHQ-803 is fixed?



Comment 3 Jeff Weiss 2008-09-19 18:54:57 UTC
Now get "Syntax error in your group definition: Can not apply a string function to an expression that resolves to Integer "

rev1547.

Comment 4 Red Hat Bugzilla 2009-11-10 21:17:35 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-821



Note You need to log in before you can comment on or make changes to this bug.