elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.76k stars 8.16k forks source link

JSON Validation Error for Scripted Condition Watchers on Kibana 8.10.4 #177947

Open nabil86 opened 7 months ago

nabil86 commented 7 months ago

Kibana version: 8.10.4 Elasticsearch version: 8.10.4 Server OS version: Centos 8 Browser version: Firefox 112+ , chrome 122.x+

Describe the bug: When creating a watcher with a scripted condition through the Kibana user interface, JSON validation fails on version 8.10.4, whereas on version 7.16.2, the validation passes without any issues. However, creating the watcher via the API works correctly on both versions.

Steps to reproduce:

  1. Create a watcher with a multiline script condition.
  2. simulate it

Expected behavior: validate multiline script Screenshots (if relevant): On Kibana 8.10.4: image On kibana 7.16.2 it's work fine: image Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

elasticmachine commented 7 months ago

Pinging @elastic/security-solution (Team: SecuritySolution)

elasticmachine commented 7 months ago

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

elasticmachine commented 1 week ago

Pinging @elastic/kibana-management (Team:Kibana Management)