[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:01:29 EST 2014


     [ https://issues.jboss.org/browse/WFCORE-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry moved WFLY-4061 to WFCORE-224:
-----------------------------------------------

          Project: WildFly Core  (was: WildFly)
              Key: WFCORE-224  (was: WFLY-4061)
      Component/s: Domain Management
                       (was: Domain Management)
    Fix Version/s: 1.0.0.Beta1
                       (was: 9.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
>             Fix For: 1.0.0.Beta1
>
>
> 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