[jboss-jira] [JBoss JIRA] (WFCORE-3298) EnumValidator should avoid trying to modify protected nodes
Michal Petrov (Jira)
issues at jboss.org
Tue Apr 9 04:36:00 EDT 2019
[ https://issues.jboss.org/browse/WFCORE-3298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michal Petrov reassigned WFCORE-3298:
-------------------------------------
Assignee: Michal Petrov
> EnumValidator should avoid trying to modify protected nodes
> -----------------------------------------------------------
>
> Key: WFCORE-3298
> URL: https://issues.jboss.org/browse/WFCORE-3298
> Project: WildFly Core
> Issue Type: Bug
> Components: Management
> Reporter: Brian Stansberry
> Assignee: Michal Petrov
> Priority: Major
>
> EnumValidator is trying to "correct" inputs by converting the input node to the official name of the enum. This results a caught and discarded UnsupportedOperationException if the node is protected. Catching an exception is a poor way to do this.
> Simply not doing the write if the input is the same as the official value is one way to mitigate this, but better is to wait for DMR-37 and just check if the node is protected.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list