wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
WzSearchBar component malfunction with suggestions that contain " and " or " or "
Wazuh | Elastic | Rev |
---|---|---|
4.x | 7.x | 400x |
Description
The WzSearchBar
component can't search when the suggestions values contain the " and " or " or " string.
It is because the query is split by these strings into substrings and provokes a malfunction in the search bar. As consequence, it displays bad suggestions and can't search because thinks the query is not completed.
This could be caused by the regular expression in https://github.com/wazuh/wazuh-kibana-app/blob/4.2-7.10/public/components/wz-search-bar/lib/q-interpreter.ts#L34
Steps to reproduce
- Go to
Agents
and type in the search bar something likename=wazuh and
- Check the suggestion or try to do the search
Screenshots
Might be resolved by #4088
This issue was resolved in #4326