Skip to content

Some x_opencti_linked-to ref relations weren't cleaned properly, causing schema validations error on impacted entities #8022

Closed

Description

Description

A user wasn't able to modify some of his entities, with a Schema validation failure when loading dependencies error.
After investigation, this is caused by some x_opencti_linked-to ref relations being left over in database that should have been deleted. These relations are no longer being handled in the current schema, causing the schema validation failure.

To fix it, we need to migrate the remaining x_opencti_linked-to ref relations from the READ_INDEX_STIX_CYBER_OBSERVABLE_RELATIONSHIPS.

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. OpenCTI client: { e.g. frontend or python }
  4. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Have linked-to ref relationships in the READ_INDEX_STIX_CYBER_OBSERVABLE_RELATIONSHIPS index in a platform below 6.0 version
  2. Upgrade the platform to a version >= 6.0 version

Expected Output

The linked-to refs are all migrated to related-to relations

Actual Output

The linked-to refs in the READ_INDEX_STIX_CYBER_OBSERVABLE_RELATIONSHIPS index remain

Additional information

Screenshots (optional)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

buguse for describing something not working as expectedsolveduse to identify issue that has been solved (must be linked to the solving PR)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions