Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3298

EnumValidator should avoid trying to modify protected nodes

XMLWordPrintable

      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.

              mpetrov@redhat.com Michal Petrov
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: