OpenCTI-Platform / opencti

Open Cyber Threat Intelligence Platform
https://opencti.io
Other
6.08k stars 904 forks source link

Attribute is an Attribute to chose for every entity in CSV mapper #7849

Closed nino-filigran closed 1 month ago

nino-filigran commented 1 month ago

Description

In all entities, when creating/updating a CSV mapper, there is an attribute called "attribute". This is an internal attribute that should not be exposed.

Environment

Demo

Reproducible Steps

Steps to create the smallest reproducible scenario: Go to CSV mapper Create a csv mapper Chose an entity representation (any) Look at the fields proposed

Expected Output

Attribute should not be in the list

Actual Output

Attribute should is in in the list

Additional information

Fix:

image

labo-flg commented 1 month ago

mapper builds the form from the schema ; this "attributes" is a technical field iAttributes used internally only, but indeed it is present at a high level so appears in all entities. We need to mark it in the schema so the csv mapper won't display it.