Skip to content

Type is not used when generating alert id #457

Closed
@srilumpa

Description

@srilumpa

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

  1. Create a dummy alert with the following parameters: {"type":"test", source":"test", "sourceRef": "test", ...} (the first alert will be created)
  2. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions