kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

Wizard: No enum constant com.provectus.kafka.ui.model.ActionDTO.view

Open Haarolean opened this issue 1 year ago • 0 comments

via https://github.com/provectus/kafka-ui/issues/4308

java.lang.IllegalArgumentException: No enum constant com.provectus.kafka.ui.model.ActionDTO.view
        at java.base/java.lang.Enum.valueOf(Enum.java:273)
        Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyExceptio**

TODO: Come up with a way to treat these enums with ignoring the case (view = VIEW)

Impl details:

A config like this:

        - resource: clusterconfig
          value: ".*"
          actions: all

when accessed via wizard and mapped via PropertiesMapper in ApplicationConfigController fails with the aforementioned exception as it tried to map 1:1 without ignoring the case.

Also, it tried to map the "all" action as well which doesn't exist in the enum.

Haarolean avatar Jan 31 '24 17:01 Haarolean