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

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

Open lvillaca opened this issue 2 years ago • 1 comments

Issue submitter TODO list

  • [X] I've looked up my issue in FAQ
  • [X] I've searched for an already existing issues here
  • [X] I've tried running master-labeled docker image and the issue still persists there
  • [X] I'm running a supported version of the application which is listed here

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.

lvillaca avatar Oct 25 '23 14:10 lvillaca

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. 👀

github-actions[bot] avatar Oct 25 '23 14:10 github-actions[bot]