[jboss-jira] [JBoss JIRA] (WFCORE-779) AbstractAddStepHandler doesn't let AttributeDefinitions record default capability requirements

James Perkins (JIRA) issues at jboss.org
Fri Jun 26 20:17:18 EDT 2015


     [ https://issues.jboss.org/browse/WFCORE-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins updated WFCORE-779:
---------------------------------
    Fix Version/s: 2.0.0.Alpha6
                       (was: 2.0.0.Alpha5)


> AbstractAddStepHandler doesn't let AttributeDefinitions record default capability requirements
> ----------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-779
>                 URL: https://issues.jboss.org/browse/WFCORE-779
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 2.0.0.Alpha4
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>            Priority: Minor
>             Fix For: 2.0.0.Alpha6
>
>
> AbstractAddStepHandler.recordCapabilitiesAndRequirements(...) has this:
> {code}
>         ModelNode model = resource.getModel();
>         for (AttributeDefinition ad : attributes) {
>             if (model.hasDefined(ad.getName())) {
>                 ad.addCapabilityRequirements(context, model.get(ad.getName()));
>             }
>         }
> {code}
> That 'if' check removes the opportunity for an AD to register a requirement based on the default value of the attribute.
> SimpleAttributeDefinition includes logic for doing that, so not giving it a chance to execute is inconsistent. AbstractWriteAttributeHandler also doesn't include any such limitation.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list