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

KQL still removes leading zero and breaks query in some cases #85548

Closed
kkensy opened this issue Dec 10, 2020 · 1 comment · Fixed by #93658
Closed

KQL still removes leading zero and breaks query in some cases #85548

kkensy opened this issue Dec 10, 2020 · 1 comment · Fixed by #93658
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:KQL KQL Feature:Search Querying infrastructure in Kibana PR sent SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week triage_needed

Comments

@kkensy
Copy link

kkensy commented Dec 10, 2020

Kibana version:
7.9.1
Elasticsearch version:
7.9.1
Server OS version:
Ubuntu 16.04.6 LTS
Browser version:
Google Chrome Version 87.0.4280.66 (Official Build) (64-bit)
Browser OS version:
Linux Mint 19.1 Tessa
Original install method (e.g. download page, yum, from source, etc.):
download page
Describe the bug:
As in #62217, there are some cases left, where the leading zero is removed from the query. For example:
the search incMods:{ version:077 } results in a query ...{"match":{"incMods.version":"077"}}...
the search incMods:{ version:070 } results in a query ...{"match":{"incMods.version":70}}...
The field version is mapped as (a lowercased) keyword.

The fix for #62217 introduced a regex, that I think needs to be fixed (^0.0$ should be ^0\.0$):
https://github.com/elastic/kibana/pull/62748/files#diff-90efe212df5748f7d18f7215c19a805fcfdb3150874b41a846eb42d6b4e654e5R250

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@lukasolson lukasolson added bug Fixes for quality problems that affect the customer experience triage_needed labels Dec 10, 2020
@ppisljar ppisljar added the Feature:Search Querying infrastructure in Kibana label Mar 1, 2021
@lukasolson lukasolson self-assigned this Mar 3, 2021
@lukasolson lukasolson added the SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week label Mar 3, 2021
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:KQL KQL Feature:Search Querying infrastructure in Kibana PR sent SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week triage_needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants