-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unhandled alias search errors #128289
Fix unhandled alias search errors #128289
Conversation
The data plugin already defined this function, I just moved it to the @kbn/es-kuery package so other consumers could use it too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
… grammer (#198288) ## Summary As mentioned in https://github.com/elastic/kibana/security/code-scanning/349, this PR resolves the escaping issue. Additionally, it also adds more candiadates for escaping as mentioned in `kuery` grammar as shown below . https://github.com/elastic/kibana/blob/d6b4fe9e6ee2e18691b0fa818c4e2c4ed3c413fc/packages/kbn-es-query/grammar/grammar.peggy#L295-L298 ## Solution This PR replicates #128289 in `7.17` where `escape_kquery` was moved from `data` plugin to `es-query` package. This should have been backported to `7.17` but was not.
Resolves #128282.
This fixes certain edge cases that could cause the ES kuery builder to throw an unexpected error when a saved object ID contains a
:
character.This is a bug fix, but I'm labeling this as
release_note:skip
because this bug doesn't have any practical impact on users in past versions of Kibana.