[jboss-jira] [JBoss JIRA] (WFCORE-3055) AD#setAllowedValues() does not set validator, leading to incorrect values
Brian Stansberry (JIRA)
issues at jboss.org
Tue Jul 18 15:50:00 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-3055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry reassigned WFCORE-3055:
----------------------------------------
Assignee: Ingo Weiss (was: Brian Stansberry)
[~iweiss] I'm assigning this back to you because I believe the issue here is SecurityDomainResoureDefinition is not passing the AD into the SecurityDomainReloadWriteHandler constructor. Therefore the AD is not available to the handler and its validation code is skipped (see the AbstractWriteAttributeHandler.execute impl).
If I'm correct please close this one.
> AD#setAllowedValues() does not set validator, 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: Ingo Weiss
>
> 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 validated, leading to invalid values on the model.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list