parsing taxii filters not needed when retrieving by id

stix2.1
= 2017-10-02 16:43:08 -04:00
parent 2321e8d54e
commit 3b9e52ce19
1 changed files with 3 additions and 3 deletions

View File

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