mirror of https://github.com/MISP/MISP
fix: [stix2 import] Allowing import of STIX 2.0 documents that have non v4 UUIDs
- Some further operations may be done on those UUIDs later - Atm, we (at least) avoid loading errors from the stix2 python librarypull/3956/head
parent
06fff3bb32
commit
12b713af35
|
@ -1311,7 +1311,7 @@ def main(args):
|
|||
stix_event['relationship'] = defaultdict(list)
|
||||
filename = os.path.join(os.path.dirname(args[0]), args[1])
|
||||
with open(filename, 'rt', encoding='utf-8') as f:
|
||||
event = stix2.parse(f.read(), allow_custom=True)
|
||||
event = stix2.parse(f.read(), allow_custom=True, interoperability=True)
|
||||
for parsed_object in event.objects:
|
||||
try:
|
||||
object_type = parsed_object._type
|
||||
|
|
Loading…
Reference in New Issue