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

Brian Stansberry (JIRA) issues at jboss.org
Thu Jun 25 15:03:02 EDT 2015


Brian Stansberry created WFCORE-779:
---------------------------------------

             Summary: 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.Alpha5


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