[jboss-jira] [JBoss JIRA] (WFLY-4061) AttributeDefinition validateAndSet and validateOperation should perform basic type conversions before returning
Brian Stansberry (JIRA)
issues at jboss.org
Thu Nov 6 13:00:29 EST 2014
Brian Stansberry created WFLY-4061:
--------------------------------------
Summary: AttributeDefinition validateAndSet and validateOperation should perform basic type conversions before returning
Key: WFLY-4061
URL: https://issues.jboss.org/browse/WFLY-4061
Project: WildFly
Issue Type: Enhancement
Components: Domain Management
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Fix For: 9.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