provectus / kafka-ui

Open-Source Web UI for Apache Kafka Management
Apache License 2.0
9.68k stars 1.17k forks source link

No enum constant com.provectus.kafka.ui.model.ActionDTO.view #4308

Open lvillaca opened 12 months ago

lvillaca commented 12 months ago

Issue submitter TODO list

Describe the bug (actual behavior)

Hi, firstly thanks for providing this tool, it seems great!

I am trying to configure new MSK clusters based on auth credentials from an admin account. I am able to validate the settings, but when I submit it I get the following issue:

**500 Server Error for HTTP GET "/api/config"
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**

Expected behavior

MSK cluster instance is set on the UI tool.

Your installation details

This is happening using the latest from master branch (as of Oct 24th, 2023).

Steps to reproduce

In Configure new cluster enter MSK information as provided in the screenshot.

Validate, and after a successful feedback, try to submit.

Screenshots

image

Logs

Logs are big but I can reproduce the trace I got here, which might give a hint.

Original Stack Trace:
                at java.base/java.lang.Enum.valueOf(Enum.java:273)
                at com.provectus.kafka.ui.controller.ApplicationConfigController$PropertiesMapperImpl.stringListToActionDTOList(ApplicationConfigController$PropertiesMapperImpl.java:727)
                at com.provectus.kafka.ui.controller.ApplicationConfigController$PropertiesMapperImpl.permissionToApplicationConfigPropertiesRbacRolesInnerPermissionsInnerDTO(ApplicationConfigController$PropertiesMapperImpl.java:742)
                at com.provectus.kafka.ui.controller.ApplicationConfigController$PropertiesMapperImpl.permissionListToApplicationConfigPropertiesRbacRolesInnerPermissionsInnerDTOList(ApplicationConfigController$PropertiesMapperImpl.java:754)
                at com.provectus.kafka.ui.controller.ApplicationConfigController$PropertiesMapperImpl.roleToApplicationConfigPropertiesRbacRolesInnerDTO(ApplicationConfigController$PropertiesMapperImpl.java:773)
                at com.provectus.kafka.ui.controller.ApplicationConfigController$PropertiesMapperImpl.roleListToApplicationConfigPropertiesRbacRolesInnerDTOList(ApplicationConfigController$PropertiesMapperImpl.java:785)
                at com.provectus.kafka.ui.controller.ApplicationConfigController$PropertiesMapperImpl.roleBasedAccessControlPropertiesToApplicationConfigPropertiesRbacDTO(ApplicationConfigController$PropertiesMapperImpl.java:798)
                at com.provectus.kafka.ui.controller.ApplicationConfigController$PropertiesMapperImpl.toDto(ApplicationConfigController$PropertiesMapperImpl.java:74)
                at com.provectus.kafka.ui.controller.ApplicationConfigController.lambda$getCurrentConfig$0(ApplicationConfigController.java:71)
                at reactor.core.publisher.MonoSupplier.call(MonoSupplier.java:67)
                at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:228)

Additional context

I switched, in the first place, to the master branch, since the release I was using (0.7.1), was failing on the same scenario (right after a successful validation of the cluster settings) with the following error instead:

ERROR [reactor-http-epoll-4] o.s.b.a.w.r.e.AbstractErrorWebExceptionHandler: [abee553f-25]  500 Server Error for HTTP GET "/api/config"
java.lang.IllegalArgumentException: cluster value is empty

Which appears to be fixed and merged to master, according to this discussion and this PR, on Aug 1st. I also have OIDC set with keycloak on my config.

github-actions[bot] commented 12 months ago

Hello there lvillaca! πŸ‘‹

Thank you and congratulations πŸŽ‰ for opening your very first issue in this project! πŸ’–

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. πŸ‘€