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

clean_up_inconsistent_bundle option should warn some references are dropped

Open flavienSindou opened this issue 9 months ago • 0 comments

Description

When using https://github.com/OpenCTI-Platform/client-python/blob/ea941a90b9d6bc6c05b1ecb898a86456a314b3df/pycti/connector/opencti_connector_helper.py#L1739 with cleanup_inconsistent_bundle option there is no user info about the missing references that are removed from the bundle.

Environment

  1. OS (where OpenCTI server runs): NA
  2. OpenCTI version: 6.5.9
  3. Other environment details: NA

Reproducible Steps

  1. create an inconsistent bundle (for instance 1 relationship pointing to missing entities)
  2. use send_stix2_bundle method
  3. No message is emitted

Expected Output

A warning message alerting bundle have been modified

Actual Output

Nothing

Additional information

NA

flavienSindou avatar Mar 24 '25 10:03 flavienSindou