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

Search does not work with special character #1117

Closed
udgover opened this issue Jul 31, 2024 · 1 comment
Closed

Search does not work with special character #1117

udgover opened this issue Jul 31, 2024 · 1 comment

Comments

@udgover
Copy link
Collaborator

udgover commented Jul 31, 2024

When looking for observables of type command line containing special characters, the search does not return results. It also impacts running analytics on these observable.

After investigating, method filter in ArangoYetiConnector class is adding REGEX conditions which requires to escape all special characters. Replacing this condition with conditions.append(f"(CONTAINS(o.@arg{i}_key, @arg{i}_value) OR REGEX_TEST(o.@arg{i}_key, @arg{i}_value, true))") will work for all cases.

The question is, do we want to replace all occurrences of the faulty condition with the suggested ones or should we provide a regex operator in search?

@tomchop
Copy link
Collaborator

tomchop commented Sep 14, 2024

This should be fixed in #1118, can you double check?

@udgover udgover closed this as completed Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants