Any of the Cases items that have the MANDATORY field 'created' fail because the field does not show up in the CSV Mapper and does not automatically pull the field, even if it is present in the file.
Environment
OS (where OpenCTI server runs): container
OpenCTI version: <6.1.8
OpenCTI client: frontend
Other environment details:
Reproducible Steps
Steps to create the smallest reproducible scenario:
generate a CSV from outside source of RFIs, Incident Responses, etc
Create a basic CSV Map for any of those items and attempt to test, receive message about 'created' attribute missing.
Expected Output
Ingest those entity types
Actual Output
Additional information
`{
"category":"APP",
"errors":[
{
"attributes":{
"attribute":"created",
"genre":"BUSINESS",
"http_status":400,
"representation":"#1 Case-Rfi"
},
"message":"Missing values for required attribute",
"name":"FUNCTIONAL_ERROR",
"stack":"FUNCTIONAL_ERROR: Missing values for required attribute\n at error (/opt/opencti/build/src/config/errors.js:8:10)\n at FunctionalError (/opt/opencti/build/src/config/errors.js:95:50)\n at /opt/opencti/build/src/modules/internal/csvMapper/csvMapper-utils.ts:165:17\n at Array.forEach ()\n at /opt/opencti/build/src/modules/internal/csvMapper/csvMapper-utils.ts:159:8\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Promise.all (index 0)\n at validateCsvMapper (/opt/opencti/build/src/modules/internal/csvMapper/csvMapper-utils.ts:137:3)\n at bundleProcess (/opt/opencti/build/src/parser/csv-bundler.ts:32:3)\n at csvMapperTest (/opt/opencti/build/src/modules/internal/csvMapper/csvMapper-domain.ts:31:18)"
}
],
"inner_relation_creation":0,
"level":"error",
"message":"Missing values for required attribute",
"operation":"Unspecified",
"query_attributes":[
[
{
"arguments":[
[
{
"is_empty":true,
"name":"configuration",
"type":"Variable"
}
],
[
{
"is_empty":true,
"name":"content",
"type":"Variable"
}
]
],
"name":"csvMapperTest"
}
]
],
"size":484,
"source":"backend",
"time":3,
"timestamp":"2024-06-04T14:19:25.888Z",
"type":"READ_ERROR",
"user":{
"group_ids":[
"668ad6ec-ff03-450f-889f-656371d42deb"
],
"ip":"::ffff:172.19.0.1",
"organization_ids":[
Description
Any of the Cases items that have the MANDATORY field 'created' fail because the field does not show up in the CSV Mapper and does not automatically pull the field, even if it is present in the file.
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
Expected Output
Ingest those entity types
Actual Output
Additional information
`{ "category":"APP", "errors":[ { "attributes":{ "attribute":"created", "genre":"BUSINESS", "http_status":400, "representation":"#1 Case-Rfi" }, "message":"Missing values for required attribute", "name":"FUNCTIONAL_ERROR", "stack":"FUNCTIONAL_ERROR: Missing values for required attribute\n at error (/opt/opencti/build/src/config/errors.js:8:10)\n at FunctionalError (/opt/opencti/build/src/config/errors.js:95:50)\n at /opt/opencti/build/src/modules/internal/csvMapper/csvMapper-utils.ts:165:17\n at Array.forEach ()\n at /opt/opencti/build/src/modules/internal/csvMapper/csvMapper-utils.ts:159:8\n at processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Promise.all (index 0)\n at validateCsvMapper (/opt/opencti/build/src/modules/internal/csvMapper/csvMapper-utils.ts:137:3)\n at bundleProcess (/opt/opencti/build/src/parser/csv-bundler.ts:32:3)\n at csvMapperTest (/opt/opencti/build/src/modules/internal/csvMapper/csvMapper-domain.ts:31:18)"
}
],
"inner_relation_creation":0,
"level":"error",
"message":"Missing values for required attribute",
"operation":"Unspecified",
"query_attributes":[
[
{
"arguments":[
[
{
"is_empty":true,
"name":"configuration",
"type":"Variable"
}
],
[
{
"is_empty":true,
"name":"content",
"type":"Variable"
}
]
],
"name":"csvMapperTest"
}
]
],
"size":484,
"source":"backend",
"time":3,
"timestamp":"2024-06-04T14:19:25.888Z",
"type":"READ_ERROR",
"user":{
"group_ids":[
"668ad6ec-ff03-450f-889f-656371d42deb"
],
"ip":"::ffff:172.19.0.1",
"organization_ids":[
}, "version":"6.1.8" }`
Screenshots (optional)