[jboss-jira] [JBoss JIRA] (AS7-4400) Boolean validator

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Jan 22 09:47:22 EST 2013


    [ https://issues.jboss.org/browse/AS7-4400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749461#comment-12749461 ] 

Brian Stansberry commented on AS7-4400:
---------------------------------------

I need a more specific case where this is failing. There's a general DMR issue to consider (i.e. when StringValue.asBoolean() executes throw IAE if the !string.equalsIgnoreCase("true") || !string.equalsIgnoreCase("false").  But, in the AS management layer ModelTypeValidator should be rejecting attributes that don't meet that requirement. So if it's failing in the AS that tells me that validation isn't being done correctly somewhere.
                
> Boolean validator
> -----------------
>
>                 Key: AS7-4400
>                 URL: https://issues.jboss.org/browse/AS7-4400
>             Project: Application Server 7
>          Issue Type: Task
>          Components: Domain Management
>    Affects Versions: 7.1.1.Final
>            Reporter: Jesper Pedersen
>             Fix For: 7.3.0.Alpha1
>
>
> If you have a BOOLEAN in the DMR, but fail to type in the correct value, say "ture", it will get evaluated as false, while the user clearly meant true.
> We should have a strict validation against the "true" and "false" strings. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list