[MISP] Handle case where MISP Distribution and Threat Level IDs are of type int #3994
Labels
bug
use for describing something not working as expected
needs triage
use to identify issue needing triage from Filigran Product team
Uh oh!
There was an error while loading. Please reload this page.
Description
Connector Name: MISP
URL: https://github.com/OpenCTI-Platform/connectors/tree/master/external-import/misp
event["Event"]["distribution"]
andevent["Event"]["threat_level_id"]
will be of typestr
always.int
type.True
).log_info
operations within the comparisons result in exceptions due to incorrect types being concatenated (str
+int
).Expected Output
In case a MISP server returns the above properties as
int
, the connector should convert them tostr
.Actual Output
Exception is raised due to incorrect types being concatenated.
Proposed Fix
Cast
event["Event"]["distribution"]
andevent["Event"]["threat_level_id"]
withinstr
:The text was updated successfully, but these errors were encountered: