[jboss-jira] [JBoss JIRA] (WFCORE-224) AttributeDefinition validateAndSet and validateOperation should perform basic type conversions before returning
Brian Stansberry (JIRA)
issues at jboss.org
Thu Nov 6 13:06:30 EST 2014
[ https://issues.jboss.org/browse/WFCORE-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated WFCORE-224:
------------------------------------
Fix Version/s: (was: 1.0.0.Beta1)
> AttributeDefinition validateAndSet and validateOperation should perform basic type conversions before returning
> ---------------------------------------------------------------------------------------------------------------
>
> Key: WFCORE-224
> URL: https://issues.jboss.org/browse/WFCORE-224
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Domain Management
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
>
> If an operation passes in something like "enabled"=>"true" instead of "enabled"=>true for an AD whose type is BOOLEAN, validateAndSet should convert to BOOLEAN before storing and validateOperation should convert to boolean before returning.
> Doing it for validateOperation isn't so obvious, but that method already converts strings to expressions if expression are supported, and also runs any ParameterCorrector, so the method isn't a simple read of the model, and this new behavior is consistent. The method javadoc needs to be updated anyway to better reflect what it does.
> I don't propose to do anything complex here; e.g. descending into complex attributes.
> I'm pretty sure there's already a JIRA for this but I can't find it.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the jboss-jira
mailing list