Skip to content
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

Saved objects search does not escape hyphens #31792

Closed
marius-dr opened this issue Feb 22, 2019 · 2 comments
Closed

Saved objects search does not escape hyphens #31792

marius-dr opened this issue Feb 22, 2019 · 2 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Saved Objects Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@marius-dr
Copy link
Member

Kibana version: 6.7.0

Describe the bug:
If you try to search for a saved object that contains a hyphen it doesn't find it if you use the exact name. It doesn't matter if you try and escape it with a \ or with " around the whole string. The query that gets to to the _find endpoint of the saved_object_api is the same every time.

Steps to reproduce:

  1. Create an index pattern with a - in it. For example "metricbeat-*"
  2. Serach for it in the Saved objects page with any of the following terms: metricbeat-* , metricbeat\-* "metricbeat-*"

The requests looks like this in all the cases:
/api/saved_objects/_find?search=metricbeat-**&per_page=20&page=1&fields=title&fields=id&search_fields=title&type=ind

@marius-dr marius-dr added bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:Saved Objects labels Feb 22, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@nreese
Copy link
Contributor

nreese commented Feb 22, 2019

Closing, duplicate of #5734

@nreese nreese closed this as completed Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Saved Objects Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

No branches or pull requests

3 participants