Skip to content

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

@Haarolean

Description

@Haarolean

via provectus/kafka-ui#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.

Metadata

Metadata

Assignees

Labels

area/rbacRelated to Role Based Access Control featurearea/wizardUI configuration wizard issuesgood first issueUp for grabsscope/backendRelated to backend changesstatus/triage/completedAutomatic triage completedtype/bugSomething isn't working

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions