[jboss-jira] [JBoss JIRA] (AS7-2815) Model values returned from the server should conform to the 'allowed' attribute.

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Wed Jan 25 12:49:48 EST 2012


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

Brian Stansberry commented on AS7-2815:
---------------------------------------

One point on this: EnumValidator is creating the allowed values list using theenum.name() rather than theenum.toString(). Changing that will make it easier to provide non-upper-case values in the description metadata. It's still up to the operation handlers though to correctly deal with case sensitivity when doing string<->enum conversions.
                
> Model values returned from the server should conform to the 'allowed' attribute.
> --------------------------------------------------------------------------------
>
>                 Key: AS7-2815
>                 URL: https://issues.jboss.org/browse/AS7-2815
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 7.1.0.Beta1
>            Reporter: David Bosschaert
>            Assignee: Jason Greene
>             Fix For: 7.1.0.Final
>
>
> Looking at the security domain subsystem I see that that the
> authorization flag field has an allowed list of:
> "allowed" =>  [
>    "REQUIRED",
>    "REQUISITE",
>    "SUFFICIENT",
>    "OPTIONAL"]
> However, the default model (what you get with a fresh new AS7 install)
> has the flag value in lowercase:
>    "flag" =>  "required",
> Suggestion from Brian: allow the input to be lenient, but require that the output of the model information always matches the 'allowed' range.
> See: http://lists.jboss.org/pipermail/jboss-as7-dev/2011-November/004733.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list