Open frconil opened 1 year ago
Pinging @elastic/es-data-management (Team:Data Management)
I've transferred this to the Kibana repository, as Elasticsearch itself does not generate any JSON using triple-quotes ("""
). I suspect this is something related to the Dev Console within Kibana.
Pinging @elastic/platform-deployment-management (Team:Deployment Management)
Might be related to https://github.com/elastic/kibana/issues/13528
Pinging @elastic/kibana-management (Team:Kibana Management)
Elasticsearch Version
8.6.1
Installed Plugins
No response
Java Version
bundled
OS Version
ESS
Problem Description
When using the Get watch API endpoint to export current watches, the JSON generated may not pass validation in either Dev Tools or the Kibana watcher UI.
In particular, this happens in triple quoted strings (e.g.
"""
delimited strings) terminated by a single"
. For instance this is a line being generated by the API output:This line will trigger in error in both dev tools or the watcher interface reporting it as invalid json.
this fixed line works:
Steps to Reproduce
Create a watch where the query is delimited by
"""
. Export this watch with:Try and import the content of the
_source
object withPUT _watcher/watch/<watch_id> {<source>}
.Logs (if relevant)