[jboss-jira] [JBoss JIRA] (WFLY-8085) ExpressionSupportSmokeTestCase doesn't properly handle attributes with undefined required attributes

Brian Stansberry (JIRA) issues at jboss.org
Sat Feb 11 12:29:00 EST 2017


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

Brian Stansberry resolved WFLY-8085.
------------------------------------
    Resolution: Won't Fix


> ExpressionSupportSmokeTestCase doesn't properly handle attributes with undefined required attributes
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-8085
>                 URL: https://issues.jboss.org/browse/WFLY-8085
>             Project: WildFly
>          Issue Type: Bug
>          Components: Domain Management, Test Suite
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>
> ExpressionSupportSmokeTestCase is attempting to set attributes even when other required attributes are undefined. In organizeAttributes it checks if the required attribute is undefined due to the presence of a defined alternative, but if that's not the reason it tries to set the base attribute. That will fail if the required attribute is undefined simply because the base config doesn't define it.
> https://github.com/wildfly/wildfly/pull/9628 includes a workaround for this, but it's not ideal. We should look into how setExpressions works and change it from executing a bunch of individual write-attribute ops per resource to executing them all as steps in a single composite. That would remove any reason for leaving these attributes undefined. Both the base attribute and the required attribute would be set in the same composite.



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


More information about the jboss-jira mailing list