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

There is no validation about not accepted filter code within Topic/Messages/filtering

Open armenuikafka opened this issue 2 years ago • 1 comments

Describe the bug There is no validation about wrong data inputing into filter code for Messages filtering within Topic

Set up https://www.kafka-ui.provectus.io/

Steps to Reproduce

  1. Navigate to Topics
  2. Select the Topic
  3. Turn to Messages
  4. Add filters
  5. Fill "Filter code" with any random data ("randomfilter")
  6. Fill "Display name"
  7. Save the filter
  8. Press "Add filter"
  9. Turn to Saved Filters

Expected behavior The "Filter code" should not accept random data, validation should be shown for using the meaningful filter

Screenshots

https://user-images.githubusercontent.com/104780608/180065743-115861d8-fe45-42c3-b765-c56e44c560b2.mov

armenuikafka avatar Jul 21 '22 03:07 armenuikafka

we could try validating groovy code

Haarolean avatar Jul 26 '22 09:07 Haarolean