Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] Allow exclamation mark in enrollment token name (#191807)
## Summary Closes #191719 Attempting to generate a Fleet enrollment token with a name that ends with `!` produces a malformed ES query which causes `POST agents/enrollment_api_keys` to fail with 500. This PR adds a narrow fix by escaping question marks (which is a `query_string` [special character](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax)). Note: this query probably wouldn't be necessary if we removed the constraint of unique name, as discussed in #155550. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Loading branch information