[jboss-jira] [JBoss JIRA] (WFCORE-3055) SimpleAttributeDefinitionBuilder.setAllowedValues() doesn't validate the model, leading to incorrect values

Ingo Weiss (JIRA) issues at jboss.org
Mon Jul 10 11:53:00 EDT 2017


Ingo Weiss created WFCORE-3055:
----------------------------------

             Summary: SimpleAttributeDefinitionBuilder.setAllowedValues() doesn't validate the model, leading to incorrect values
                 Key: WFCORE-3055
                 URL: https://issues.jboss.org/browse/WFCORE-3055
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 3.0.0.Beta28
            Reporter: Ingo Weiss
            Assignee: Brian Stansberry


When creating a new subsystem attribute and using {{.setAllowedValues()}} as in the below example:
{code:java}
public static final SimpleAttributeDefinition CACHE_TYPE = new SimpleAttributeDefinitionBuilder(Constants.CACHE_TYPE, ModelType.STRING, true)
        .setAllowExpression(true)
        .setAllowedValues("default", "infinispan")
        .build();
{code}
The model is not validating, leading to non-allowed values on the model.



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


More information about the jboss-jira mailing list