Original install method (e.g. download page, yum, from source, etc.):
Describe the bug:
Creating an agent policy with special characters like ( in their ID causes that the agent policies UI could not show any policy (see in the screenshot below).
Once that Agent Policy is created, running these API calls would fail too:
GET kbn:/api/fleet/agent_policies
POST kbn:/api/fleet/agent_policies/delete
{
"agentPolicyId": "test-(environment)"
}
with the following error:
{
"statusCode": 400,
"error": "Bad Request",
"message": """Kuery is malformed: Expected AND, OR, end of input, whitespace but "(" found.
policy_id:test-(environment)
---------------^"""
}
Kibana version: 8.14.1
Elasticsearch version: 8.14.1
Server OS version:
Browser version:
Browser OS version:
Original install method (e.g. download page, yum, from source, etc.):
Describe the bug:
Creating an agent policy with special characters like
(
in their ID causes that the agent policies UI could not show any policy (see in the screenshot below).Once that Agent Policy is created, running these API calls would fail too:
with the following error:
Steps to reproduce:
https://<kibana>/app/fleet/policies
Expected behavior:
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context: