client-python icon indicating copy to clipboard operation
client-python copied to clipboard

Invalid value initialization in extract_embedded_relationships

Open JeremyCloarec opened this issue 6 months ago • 0 comments

Please replace every line in curly brackets { like this } with an appropriate answer, and remove this line.

Description

{ Please provide a clear and concise description of the bug. } When extracting ref relationships in extract_embedded_relationships, we initialize multiple values with an empty array (like object_label_ids for example). This needs to be double checked, but this looks like a bug: these values should be initialized to a None value instead of an empty array [] if they are not in the bundle

Environment

  1. OS (where OpenCTI server runs): { e.g. Mac OS 10, Windows 10, Ubuntu 16.4, etc. }
  2. OpenCTI version: { e.g. OpenCTI 1.0.2 }
  3. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. { e.g. Run ... }
  2. { e.g. Click ... }
  3. { e.g. Error ... }

Expected Output

{ Please describe what you expected to happen. }

Actual Output

{ Please describe what actually happened. }

Additional information

{ Any additional information, including logs or screenshots if you have any. }

JeremyCloarec avatar Aug 27 '25 10:08 JeremyCloarec