Open cvandeplas opened 4 years ago
it is definitely unexpected from PyMISP side, self.misp.get_object_template(o['template_uuid'])
doesn't expect None
there.
I'm not sure how you can get to the point where an object you get from MISP doesn't have a template_uuid
. Could the object it fails on be self defined and the instance you get it from doesn't have the template?
Thanks for the feedback ! I don't know yet, waiting for the MISP json file from the user.
The uuid
is missing from the template. It seems to be a locally made template.
This indicates a bug in MISP that it loads templates that have no UUID
.
Either that, or when you export the event from MISP, as it is not tied to a known template, it cannot fill the field. If that's the case, it should not create the key, and initialize with None
. Calling o['template_uuid']
should fail with a key error.
It seems that in some use-cases the MISP Object does not have a
template_uuid
.Is this a bug on MISP-maltego or on MISP?