The String(query_string) https://thehive-project.github.io/TheHive4py/reference/query/#thehive4py.query.StartsWith) is not supported in TheHive4, but used in
"query['_string'] = 'description:"{}"'.format(string)" in "TheHiveConnector.py"
Fix-Recommendation:
Delete: "query['_string'] = 'description:"{}"'.format(string)
and add e.g.: query = ContainsString('description', format(string))
As well, the hard coded user "synapse" has to be changed. In TheHive 4 the users needs to be created in e-mail format, e.g. synapse@test.com --> for this change the users to your created synapse-user in
- TheHiveConnector --> def craftCommTask(self): --> owner ='<-thehive4-user.'
- EWS2Case --> connectEWS --> assignee = '-thehive4-user.'
Related to TheHive4 and Synapse
The String(query_string) https://thehive-project.github.io/TheHive4py/reference/query/#thehive4py.query.StartsWith) is not supported in TheHive4, but used in
"query['_string'] = 'description:"{}"'.format(string)" in "TheHiveConnector.py"
Fix-Recommendation:
Delete: "query['_string'] = 'description:"{}"'.format(string)
and add e.g.: query = ContainsString('description', format(string))
As well, the hard coded user "synapse" has to be changed. In TheHive 4 the users needs to be created in e-mail format, e.g. synapse@test.com --> for this change the users to your created synapse-user in
Related to TheHive4 and Synapse