wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

WzSearchBar component malfunction with suggestions that contain " and " or " or "

Open Desvelao opened this issue 3 years ago • 1 comments

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

  1. Go to Agents and type in the search bar something like name=wazuh and
  2. Check the suggestion or try to do the search

Screenshots image

Desvelao avatar Jun 02 '21 14:06 Desvelao

Might be resolved by #4088

AlexRuiz7 avatar Jul 20 '22 16:07 AlexRuiz7

This issue was resolved in #4326

Machi3mfl avatar Sep 05 '22 12:09 Machi3mfl