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 library
pull/3956/head
chrisr3d 2018-12-11 15:50:14 +01:00
parent 06fff3bb32
commit 12b713af35
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -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