Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
3.0.0.Beta28
-
None
-
-
Workaround Exists
-
Description
When creating a new subsystem attribute and using .setValidator(new StringAllowedValuesValidator()) as in the below example:
public static final SimpleAttributeDefinition CACHE_TYPE = new SimpleAttributeDefinitionBuilder(Constants.CACHE_TYPE, ModelType.STRING, true) .setAllowExpression(true) .setValidator(new StringAllowedValuesValidator("default", INFINISPAN_CACHE_TYPE)) .build();
The model is not validated during runtime, leading to WildFly not being able to boot after a reload due to an invalid model.