kibana/packages/kbn-es-query
Kibana Machine 6884fd1275
[8.12] Fix issue with KQL wildcard queries not properly escaping backslashes (#174464) (#174533)
# Backport

This will backport the following commits from `main` to `8.12`:
- [Fix issue with KQL wildcard queries not properly escaping backslashes
(#174464)](https://github.com/elastic/kibana/pull/174464)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Lukas
Olson","email":"lukas@elastic.co"},"sourceCommit":{"committedDate":"2024-01-09T16:24:12Z","message":"Fix
issue with KQL wildcard queries not properly escaping backslashes
(#174464)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/169709.\r\n\r\nPrior to this
PR, KQL queries against keyword fields would not properly\r\nhandle
escaped special characters (such as backslash). This PR fixes
the\r\nbehavior to properly re-escape special characters before sending
them\r\nalong to the wildcard query.\r\n\r\n### Checklist\r\n\r\n- [x]
[Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n### Release
note\r\n\r\nKQL queries against wildcards now properly handle escaped
special\r\ncharacters without requiring
double-escaping.\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"46fbfd3b13c80d49e51b6b1541fecebb7c628e02","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Feature:KQL","Team:DataDiscovery","v8.12.1","v8.13.0"],"title":"Fix
issue with KQL wildcard queries not properly escaping
backslashes","number":174464,"url":"https://github.com/elastic/kibana/pull/174464","mergeCommit":{"message":"Fix
issue with KQL wildcard queries not properly escaping backslashes
(#174464)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/169709.\r\n\r\nPrior to this
PR, KQL queries against keyword fields would not properly\r\nhandle
escaped special characters (such as backslash). This PR fixes
the\r\nbehavior to properly re-escape special characters before sending
them\r\nalong to the wildcard query.\r\n\r\n### Checklist\r\n\r\n- [x]
[Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n### Release
note\r\n\r\nKQL queries against wildcards now properly handle escaped
special\r\ncharacters without requiring
double-escaping.\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"46fbfd3b13c80d49e51b6b1541fecebb7c628e02"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174464","number":174464,"mergeCommit":{"message":"Fix
issue with KQL wildcard queries not properly escaping backslashes
(#174464)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/169709.\r\n\r\nPrior to this
PR, KQL queries against keyword fields would not properly\r\nhandle
escaped special characters (such as backslash). This PR fixes
the\r\nbehavior to properly re-escape special characters before sending
them\r\nalong to the wildcard query.\r\n\r\n### Checklist\r\n\r\n- [x]
[Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n### Release
note\r\n\r\nKQL queries against wildcards now properly handle escaped
special\r\ncharacters without requiring
double-escaping.\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"46fbfd3b13c80d49e51b6b1541fecebb7c628e02"}}]}]
BACKPORT-->

Co-authored-by: Lukas Olson <lukas@elastic.co>
2024-01-09 10:38:30 -07:00
..
src [8.12] Fix issue with KQL wildcard queries not properly escaping backslashes (#174464) (#174533) 2024-01-09 10:38:30 -07:00
BUILD.bazel Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
index.ts [8.12] [Lens] unify expression search context type (#172738) (#173671) 2023-12-19 18:39:16 -07:00
jest.config.js [Es query] Move to package (#103530) 2021-07-21 17:10:55 +02:00
kibana.jsonc Update codeowners to move AppServices packages to DataDiscovery (#149065) 2023-01-18 13:34:28 -07:00
package.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
README.md [Es query] Move to package (#103530) 2021-07-21 17:10:55 +02:00
tsconfig.json Fix eslint rule for restricting certain lodash imports (#151023) 2023-02-16 08:35:09 -07:00

@kbn/es-query

Shared common (client and server sie) utilities shared across packages and plugins.