]
Brian Stansberry reassigned WFCORE-3056:
----------------------------------------
Assignee: Ingo Weiss (was: Brian Stansberry)
[~iweiss] Please see my comment on WFCORE-3055. Perhaps it's more applicable here than
there or is applicable to both.
Model is not validated for write attribute handlers like it is
add/remove ones
------------------------------------------------------------------------------
Key: WFCORE-3056
URL:
https://issues.jboss.org/browse/WFCORE-3056
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 3.0.0.Beta28
Reporter: Ingo Weiss
Assignee: Ingo Weiss
When creating a new subsystem attribute and using .setValidator(new
StringAllowedValuesValidator()) as in the below example:
{code:java}
public static final SimpleAttributeDefinition CACHE_TYPE = new
SimpleAttributeDefinitionBuilder(Constants.CACHE_TYPE, ModelType.STRING, true)
.setAllowExpression(true)
.setValidator(new StringAllowedValuesValidator("default",
INFINISPAN_CACHE_TYPE))
.build();
{code}
The model is not validated during runtime, leading to WildFly not being able to boot
after a reload due to an invalid model.