parsing taxii filters not needed when retrieving by id
parent
2321e8d54e
commit
3b9e52ce19
|
@ -122,10 +122,10 @@ class TAXIICollectionSource(DataSource):
|
|||
if _composite_filters:
|
||||
query.update(_composite_filters)
|
||||
|
||||
# separate taxii query terms (can be done remotely)
|
||||
taxii_filters = self._parse_taxii_filters(query)
|
||||
# dont extract TAXII filters from query (to send to TAXII endpoint)
|
||||
# as directly retrieveing a STIX object by ID
|
||||
|
||||
stix_objs = self.collection.get_object(stix_id, taxii_filters)["objects"]
|
||||
stix_objs = self.collection.get_object(stix_id)["objects"]
|
||||
|
||||
stix_obj = [stix_obj for stix_obj in apply_common_filters(stix_objs, query)]
|
||||
|
||||
|
|
Loading…
Reference in New Issue