kafka-ui
kafka-ui copied to clipboard
Search with groovy fails
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)
Even the simplest ones fail - keyAsText != null
, as taken from actual example. It doesn't display errors, no progress is evident (i.e. messages being counted/consumed).
When i hit the Submit button, the only things that changes on the page are:
- the Submit button turning to Cancel, then back to Submit;
- there is a
DONE
message, it is displayed near the text showing how many messages were consumed, download size, timing. ThatDONE
message changes toPolling partitions: [0, 1, 2]
, then back toDONE
.
Both changes happen for less than a second on topics of any size.
Expected behavior
When i add a new filter, it should be obvious that is doing the search - count messages being consumed, count download size...
Your installation details
83b5a60 v0.7.2
Steps to reproduce
- Choose topic
- Click
Add Filters
button - Use filter like
keyAsText != null
(from example) or just about anything else whose results you can verify - It will start search automatically, but can also hit the
Submit
button, behavior is the same
Screenshots
No response
Logs
No response
Additional context
No response
Hello there HStoyanov-augglobal! 👋
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. 👀
Hey, this repo is not maintained (#4255), but we've replaced groovy with CEL (and fixed the related CVE) here: https://github.com/kafbat/kafka-ui . I'll be glad to answer your questions there if any.
@HStoyanov-augglobal You can set the configuration property "filtering.groovy.enabled" to true to re-enable groovy filtering.
@HStoyanov-augglobal You can set the configuration property "filtering.groovy.enabled" to true to re-enable groovy filtering.
mate can you give more info where we have to set it as i dont see this option on any of the chart values.yaml or documentations about this option
@oxie just add it as an environmental var set to true and restart the application.
Here's the commit where they added it, haven't found other documentation about it: https://github.com/provectus/kafka-ui/commit/3dc4446321716016e4c2517be4e04a692cdee7a7#diff-bee1096f3c435f4f12a5bdda31ce9a16bdd2aa9463c3ad8e11ad97fb968bbec5R48
yes seems this is the solution, please put it in the documentation:
values:
env:
- name: filtering.groovy.enabled
value: "true"