pycti 6.2.2__py3-none-any.whl → 6.2.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pycti might be problematic. Click here for more details.

pycti/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = "6.2.2"
2
+ __version__ = "6.2.4"
3
3
 
4
4
  from .api.opencti_api_client import OpenCTIApiClient
5
5
  from .api.opencti_api_connector import OpenCTIApiConnector
@@ -536,8 +536,6 @@ class OpenCTIStix2:
536
536
  )
537
537
  if generated_ref_id is None:
538
538
  continue
539
- if generated_ref_id in self.mapping_cache:
540
- external_reference_id = self.mapping_cache[generated_ref_id]
541
539
  else:
542
540
  external_reference_id = self.opencti.external_reference.create(
543
541
  source_name=source_name,
@@ -582,7 +580,6 @@ class OpenCTIStix2:
582
580
  "no_trigger_import", False
583
581
  ),
584
582
  )
585
- self.mapping_cache[generated_ref_id] = generated_ref_id
586
583
  external_references_ids.append(external_reference_id)
587
584
  if stix_object["type"] in [
588
585
  "threat-actor",
@@ -713,8 +710,6 @@ class OpenCTIStix2:
713
710
  )
714
711
  if generated_ref_id is None:
715
712
  continue
716
- if generated_ref_id in self.mapping_cache:
717
- external_reference_id = self.mapping_cache[generated_ref_id]
718
713
  else:
719
714
  external_reference_id = self.opencti.external_reference.create(
720
715
  source_name=source_name,
@@ -753,7 +748,6 @@ class OpenCTIStix2:
753
748
  mime_type=file["mime_type"],
754
749
  no_trigger_import=file.get("no_trigger_import", False),
755
750
  )
756
- self.mapping_cache[generated_ref_id] = generated_ref_id
757
751
  external_references_ids.append(external_reference_id)
758
752
  # Granted refs
759
753
  granted_refs_ids = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycti
3
- Version: 6.2.2
3
+ Version: 6.2.4
4
4
  Summary: Python API client for OpenCTI.
5
5
  Home-page: https://github.com/OpenCTI-Platform/client-python
6
6
  Author: Filigran
@@ -1,4 +1,4 @@
1
- pycti/__init__.py,sha256=ptex4IUWyvhcFbzV026ha6da3b4XeRpyoRgYflJcMT0,5157
1
+ pycti/__init__.py,sha256=lUIDIc_ofIFcwSXqrDU8jWSCzX2fs6vpYzygjqunlbI,5157
2
2
  pycti/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  pycti/api/opencti_api_client.py,sha256=c-xyfmas2LkYNIY8j4-dHBJepHNL6uNhageyJOvYdQc,29834
4
4
  pycti/api/opencti_api_connector.py,sha256=fYF0Jy9KIMFNt1RC_A1rpWomVJ-oj5HiSsBem4W0J5U,3549
@@ -62,12 +62,12 @@ pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_properties.py
62
62
  pycti/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
63
  pycti/utils/constants.py,sha256=cRzG7OZkrfJLKPcCyV9Wi8uZNp4QJB4B4WoaJw8yHx4,11807
64
64
  pycti/utils/opencti_logger.py,sha256=0dvB75V0SuPFGxL539dAQrxTt1N5Acx0A3Ogwl5WMJ8,2199
65
- pycti/utils/opencti_stix2.py,sha256=x2XdjcuFBEXovV-Aj-bE8BEbEuUcq6cW0CHI9hQJPtY,117638
65
+ pycti/utils/opencti_stix2.py,sha256=WAVgvTcj8P0QfN_K2-avCeFwSkxVtBz1nh0dA63Nlr4,117202
66
66
  pycti/utils/opencti_stix2_splitter.py,sha256=A2GqoiFzEga8hslgA3mm4FDoObFsWgx4zK4DdcWTguc,4907
67
67
  pycti/utils/opencti_stix2_update.py,sha256=CnMyqkeVA0jgyxEcgqna8sABU4YPMjkEJ228GVurIn4,14658
68
68
  pycti/utils/opencti_stix2_utils.py,sha256=4r9qglN3AIN8JH1B9Ts2o20Qn3K203M4c5-lIPzRpZ4,4138
69
- pycti-6.2.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
70
- pycti-6.2.2.dist-info/METADATA,sha256=JUuWOb6RxwtYX_nKKnV3aCuDK3uiiDLhjpRC_5mL3o0,5432
71
- pycti-6.2.2.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
72
- pycti-6.2.2.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
73
- pycti-6.2.2.dist-info/RECORD,,
69
+ pycti-6.2.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
70
+ pycti-6.2.4.dist-info/METADATA,sha256=bydyjyHCIAE6jehhaEMHuePg6mPCyDFDoa25LHyiYyM,5432
71
+ pycti-6.2.4.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
72
+ pycti-6.2.4.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
73
+ pycti-6.2.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.2.0)
2
+ Generator: setuptools (70.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
File without changes