[jboss-jira] [JBoss JIRA] (WFCORE-1915) ParseUtils.parseAttributeValue should not fail due to DMR type conversions

Brian Stansberry (JIRA) issues at jboss.org
Mon Oct 31 15:25:00 EDT 2016


Brian Stansberry created WFCORE-1915:
----------------------------------------

             Summary: ParseUtils.parseAttributeValue should not fail due to DMR type conversions
                 Key: WFCORE-1915
                 URL: https://issues.jboss.org/browse/WFCORE-1915
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 3.0.0.Alpha11
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry
             Fix For: 3.0.0.Alpha12


The task of ParseUtils.parseAttributeValue is to convert a string into a ModelNode. The type of the ModelNode is not particularly important, as later code will do type conversion. And, it is *not* the job of this method to do validation; there is other code that does that. So, the type conversion this method does should not be allowed to produce failures. Continuing to try the conversion is ok, although not required, but if a conversion can't succeed the pre-conversion ModelType.STRING node should be returned.



--
This message was sent by Atlassian JIRA
(v7.2.2#72004)


More information about the jboss-jira mailing list