]
Kabir Khan commented on WFCORE-795:
-----------------------------------
Changed the title of this Jira since looking at the code it does not copy the
allowedValues field either.
Attribute groups (and allowedValues) not inherited by further
attributes.
-------------------------------------------------------------------------
Key: WFCORE-795
URL:
https://issues.jboss.org/browse/WFCORE-795
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Reporter: Darran Lofthouse
Assignee: Kabir Khan
Labels: affects_elytron
Fix For: 2.0.0.Alpha6
Take the following attribute defintion: -
{code}
static final SimpleAttributeDefinition PATH = new
SimpleAttributeDefinitionBuilder(ElytronDescriptionConstants.PATH, ModelType.STRING,
true)
.setAllowExpression(true)
.setMinSize(1)
.setAttributeGroup(ElytronDescriptionConstants.FILE)
.setFlags(AttributeAccess.Flag.RESTART_RESOURCE_SERVICES)
.build();
{code}
If this is used as a basis for a new attribute: -
{code}
static final SimpleAttributeDefinition PATH =
new SimpleAttributeDefinitionBuilder(ElytronDescriptionConstants.PATH,
FileAttributeDefinitions.PATH)
.setAttributeGroup(ElytronDescriptionConstants.FILE)
.setAllowNull(false)
.build();
{code}
The attribute group was not inherited and needed to be manually set again.