Closed
Description
Request Type
Bug
Work Environment
Question | Answer |
---|---|
OS version (server) | Debian |
TheHive version / git hash | 3.0.3-1 |
Package Type | DEB |
Problem Description
Documentation says that an alert is uniquely identified with the tuple (type ; source ; sourceRef) (https://github.com/TheHive-Project/TheHiveDocs/blob/master/api/alert.md#create-an-alert). It seems that the type is ignored when generating the alert id.
Steps to Reproduce
- Create a dummy alert with the following parameters:
{"type":"test", source":"test", "sourceRef": "test", ...}
(the first alert will be created) - Try to create a new alert by changing only the type, it will fail saying that there is a conflict version as the document already exists and it will serve the previously created alert