The same issue can happen when tags are set with agent enroll command.
Steps to reproduce:
Enroll an agent with --tag option with special characters say, "Tags"
Navigate to Kibana Fleet>Agents tab.
Click on Tags dropdown filter and select "Tags".
Observe error pop-ups related to Kuery is malformed:
Expected Result:
User should not be able to enroll agents with tags with unsupported special characters which could show errors on selecting from tags filter.
Issue originally raised in Fleet UI: https://github.com/elastic/kibana/issues/135775
The same issue can happen when tags are set with agent enroll command.
Steps to reproduce:
--tag
option with special characters say,"Tags"
"Tags"
.Kuery is malformed:
Expected Result: User should not be able to enroll agents with tags with unsupported special characters which could show errors on selecting from tags filter.