Description
Request Type
Bug
Work Environment
Question | Answer |
---|---|
OS version (server) | CentOS |
OS version (client) | 8 |
Virtualized Env. | True |
Dedicated RAM | 16 GB |
vCPU | 12 |
TheHive version / git hash | 4.1.4-1 |
Package Type | RPM |
Database | Cassandra |
Index type | Lucene |
Disk | Local |
Browser type & version | Chrome |
Problem Description
We are facing a random error when trying to search for some cases using their case number (#15611 for example) via WebGUI, TheHive fails to find it and returns an "Unable to find case with number...", but the case does exist, we try to do some debug and found that TheHive calls an api method (/api/case/_search) using the field "caseId". We try to simulate that api call and found that it returns an empty array as if the case doesn't exist.
If we search for the case manually in the case menu we can find it and the case number is OK, we also try to do an api call (/api/v1/query) with the real ID (DB ID) and in the result we can see that the case number is also correct.
This issue is really annoying because we use the case number for tracking purposes.
Maybe it could be an index issue?
Steps to Reproduce
Random error
Possible Solutions
N/A
Complementary information
I'm attaching print screens of the error: