opencti icon indicating copy to clipboard operation
opencti copied to clipboard

Merging files must move existing files in S3 and rewrite path in x_opencti_files

Open richard-julien opened this issue 1 year ago • 2 comments

Description

When entities are merged, x_opencti_files are accumulated directly in the target. However as the x_opencti_files are stored in a path that contains the internal_id of the element, this merging doesnt do the right operations. Merging process must be improved to:

  • Move the files in the S3/Minio to the target entity
  • Rewrite the x_opencti_files sources to comply to the new path

Hints

Metadata of the file in s3 can be discarded are no longer used.

richard-julien avatar Mar 03 '24 20:03 richard-julien

@richard-julien I could not reproduce by uploading a file in an entity and merging the entity with another one.

Could you detail the steps to reproduce and the expected output?

jborozco avatar Mar 04 '24 08:03 jborozco

Hello,

This bug is confirmed, clear the the file is not moved to the new entity.

SamuelHassine avatar Mar 04 '24 08:03 SamuelHassine