You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to try out a simple responder and so I started to configure the Mailer responder.
However, whenever I run the Mailer (e.g. on a case) it returned an error Invalid dataType.
I started to investigate the code and it works as following:
ifself.data_type=='thehive:case':
# do somethingelifself.data_type=='thehive:alert':
# do something elseelse:
self.error('Invalid dataType')
Although I run the responder on an Case it seems the responder itself does not get the expected dataType. The expceted dateType is fine accourding to the Docs.
I simply added a print and this is the value that is sent to the responder: thehive:Case. Notice that for some reason the C in case is uppercase. So I assume TheHive sends the dataType in a wrong format and this leads to the Cortex/responder issue.
As there were no bigger changes in Cortex recently and this issue seems to appear with TheHive v4 I assume the issue is located on TheHive side.
Steps to Reproduce
Cortex: Enable and setup Mailer responder
TheHive: Trigger Mailer responder on the case or alert
Cortex: Check job for errors
Possible Solutions
Adapt TheHive to send dataType in lower case (as intial?)
Adapt Cortex to cast dataType to lower case before passing it to responders
Adapt all reponders to check the dataType in a different way (like expecting uppercase as well
The text was updated successfully, but these errors were encountered:
Request Type
Bug
Work Environment
Problem Description
I wanted to try out a simple responder and so I started to configure the Mailer responder.
However, whenever I run the Mailer (e.g. on a case) it returned an error
Invalid dataType
.I started to investigate the code and it works as following:
Although I run the responder on an Case it seems the responder itself does not get the expected dataType. The expceted
dateType
is fine accourding to the Docs.I simply added a
print
and this is the value that is sent to the responder:thehive:Case
. Notice that for some reason the C in case is uppercase. So I assume TheHive sends the dataType in a wrong format and this leads to the Cortex/responder issue.As there were no bigger changes in Cortex recently and this issue seems to appear with TheHive v4 I assume the issue is located on TheHive side.
Steps to Reproduce
Possible Solutions
The text was updated successfully, but these errors were encountered: