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

[Bug] Merge Into Case search by title not working #1983

Closed
mphbig opened this issue Apr 19, 2021 · 8 comments
Closed

[Bug] Merge Into Case search by title not working #1983

mphbig opened this issue Apr 19, 2021 · 8 comments
Assignees
Labels
bug outdated TheHive4 TheHive4 related issues
Milestone

Comments

@mphbig
Copy link

mphbig commented Apr 19, 2021

Request Type

Bug

Work Environment

Question Awnser
OS version (server) Debian 9
OS version (client) Windows 10
Virtualized Env. True
Dedicated RAM 16 GB
vCPU 8
TheHive version / git hash 4.1.2
Package Type DEB
Database Cassandra
Index type Lucene
Attachments storage Local
Browser type & version Firefox and Chrome latest

Problem Description

When trying to merge an alert into a case using the "Merge Into Case" button, if you search your case by case title, you will find that it shows no case at all. Even after a reindex.

The request "/api/v1/query?name=get-case-for-merge" seems to never return anything.

Steps to Reproduce

  1. Open a new alert
  2. Try to merge it using the "Merge Into Case" button
  3. Search for a case using its title

Complementary information

TheHive logs, shows nothing out of the ordinary, it reponds 200 as if everything went well.

@mphbig mphbig added TheHive4 TheHive4 related issues bug labels Apr 19, 2021
@mphbig
Copy link
Author

mphbig commented Apr 19, 2021

Workarround identified : using * (wildcard) character allows to find cases

@torsolaso
Copy link

torsolaso commented Apr 19, 2021

You must use lowercase always an between wilcards. For me, * string * is working (no spaces)

@mphbig
Copy link
Author

mphbig commented Apr 19, 2021

Thanks for your feedback.

This issue becomes a request for the devs to fix this behavior. So we don't have to use such workarounds.

@H2Cyber
Copy link

H2Cyber commented Apr 21, 2021

You must use lowercase always an between wilcards. For me, * string * is working (no spaces)

That works for some cases, but when searching for an IP (say for example *10.10.10.10*) it does not work.

@To-om To-om added this to the 4.1.5 milestone Apr 29, 2021
@mphbig
Copy link
Author

mphbig commented May 20, 2021

Little heads up on the workarround, I learned the hard way that using wildcards tends to bypass the indexes, so TheHive was behaving like pre-4.1 and was painfully slow.

It prints out this log when using wildcards :

[WARN] from org.janusgraph.graphdb.transaction.StandardJanusGraphTx in application-akka.actor.default-dispatcher-12 [0000012c|08ca3135] Query requires iterating over all vertices [()]. For better performance, use indexes

@nadouani
Copy link
Contributor

Little heads up on the workarround, I learned the hard way that using wildcards tends to bypass the indexes, so TheHive was behaving like pre-4.1 and was painfully slow.

It prints out this log when using wildcards :

[WARN] from org.janusgraph.graphdb.transaction.StandardJanusGraphTx in application-akka.actor.default-dispatcher-12 [0000012c|08ca3135] Query requires iterating over all vertices [()]. For better performance, use indexes

Is this valid in 4.1.4?

@nadouani
Copy link
Contributor

This looks fixed in 4.1.4

@mphbig
Copy link
Author

mphbig commented May 31, 2021

We are on 4.1.4 and still got the issue :(

Could it be because we got very old data (+ 1 year old) and not everything is indexed ?
Or am I mistaking and everything is indexed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug outdated TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

5 participants