[jboss-jira] [JBoss JIRA] (WFCORE-3062) Access constraints are not displayed for value types contained in ObjectTypeAttributeDefinition

Brian Stansberry (JIRA) issues at jboss.org
Thu Aug 3 14:29:00 EDT 2017


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

Brian Stansberry commented on WFCORE-3062:
------------------------------------------

You're welcome Stefan. It's a flaw using the same AttributeDefinition class(es) for all these different things since it makes it unclear what settings are valid in which use cases.

> Access constraints are not displayed for value types contained in ObjectTypeAttributeDefinition
> -----------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-3062
>                 URL: https://issues.jboss.org/browse/WFCORE-3062
>             Project: WildFly Core
>          Issue Type: Bug
>    Affects Versions: 3.0.0.Beta28
>            Reporter: Stefan Guilhen
>            Assignee: Brian Stansberry
>             Fix For: 3.0.0.Beta29
>
>
> When reading the description of attributes of type OBJECT, the access constraints of the value types contained in the object attribute are not displayed.
> Example: In BaseHttpInterfaceResourceDefinition we have an http-upgrade attribute of type OBJECT that contains the sasl-authentication-factory attribute, which is a simple attribute with an access constraint.
> When running /core-service=management/management-interface=http-interface:read-resource-description(recursive=true) in the CLI the constraint is not displayed for the attribute:
> {noformat}
>             "http-upgrade" => {
>                 "type" => OBJECT,
>                 "description" => "HTTP Upgrade specific configuration",
>                 "expressions-allowed" => false,
>                 "required" => false,
>                 "nillable" => true,
>                 "value-type" => {
>                     "enabled" => {
>                         "type" => BOOLEAN,
>                         "description" => "Flag that indicates HTTP Upgrade is enabled, which allows HTTP requests to be upgraded to native remoting connections",
>                         "expressions-allowed" => false,
>                         "required" => false,
>                         "nillable" => true,
>                         "default" => false
>                     },
>                     "sasl-authentication-factory" => {
>                         "type" => STRING,
>                         "description" => "The server side SASL authentication policy to use to secure the interface where the connection is after a HTTP upgrade.",
>                         "expressions-allowed" => false,
>                         "required" => false,
>                         "nillable" => true,
>                         "capability-reference" => "org.wildfly.security.sasl-authentication-factory",
>                         "min-length" => 1L,
>                         "max-length" => 2147483647L,
>                     }
>                 },
>                 "access-type" => "read-write",
>                 "storage" => "configuration",
>                 "restart-required" => "all-services"
>             }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list