You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following regex can be used for the value parsing and unifies the previous regexes. Apart from unifying, I have also add the possibility to have parentheses before the value string (for example, name=(something) String). This was not possible before as brackets were only possible after the main string.
I have also modified the master's query regex as empty lists could not be parsed: []
This issue aims to unify the 2 regexes used by the API query parameter in the current Wazuh
4.3
andmaster
branches.For the 4.3 version, in this pull request, we added the possibility to have strings in brackets after the main string of the value string itself:
4.3
query regex:(\()?([\w.]+)([=!=<>~]{1,2})((?:[\[\]\w _\-.:\\/']+(?:\([\[\]\w _\-.:\\/']*\))*)+)(\))?([,;])?
For master, in this pull request, we added the possibility to have lists and links in the value string (among more characters):
master
query regex:(\()?([\w.]+)([=!=<>~]{1,2})(\[[\[\]\w _\-.,:?\\/'\"=@%<>]+]|[\[\]\w _\-.:?\\/'\"=@%<>]+ )(\))?([,;])?
Note that we should also update the corresponding framework unit tests.
Checks
wazuh/wazuh
framework/wazuh/core/cluster/tests/
&framework/wazuh/core/cluster/dapi/tests/
)framework/wazuh/core/tests/
)framework/wazuh/tests/
)framework/wazuh/rbac/tests/
)api/api/tests/
)api/test/integration/
):api/test/integration/mapping/integration_test_api_endpoints.json
)api/api/spec/spec.yaml
)framework/wazuh/core/exception.py
)CHANGELOG.md
)wazuh/wazuh-documentation
source/user-manual/api/equivalence.rst
)source/user-manual/api/rbac/reference.rst
)The text was updated successfully, but these errors were encountered: