-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
buguse for describing something not working as expecteduse for describing something not working as expectedneeds triageuse to identify issue needing triage from Filigran Product teamuse to identify issue needing triage from Filigran Product team
Description
Description
In some corner case when the workId does not exists updateExpectationsNumber can raise this exception.
Full error:
TypeError: Cannot read properties of undefined (reading '_index')
at updateExpectationsNumber (/opt/opencti/build/back.js:2114:888)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async sendResultToQueue (/opt/opencti/build/back.js:4065:15946)
at async /opt/opencti/build/back.js:4065:18934
at async publish (/opt/opencti/build/back.js:2074:42857)
at async elList (/opt/opencti/build/back.js:2074:43401)
at async taskQuery (/opt/opencti/build/back.js:4065:11647)
at async workerTaskHandler (/opt/opencti/build/back.js:4065:24849)
at async /opt/opencti/build/back.js:4065:27586
It looks like for some reason currentWork can be undefined here:
await elUpdate(currentWork._index, workId, { script: { source, lang: 'painless', params } }); |
Environment
- OS (where OpenCTI server runs): { e.g. Mac OS 10, Windows 10, Ubuntu 16.4, etc. }
- OpenCTI version: { e.g. OpenCTI 1.0.2 }
- OpenCTI client: { e.g. frontend or python }
- Other environment details:
Reproducible Steps
Steps to create the smallest reproducible scenario:
- { e.g. Run ... }
- { e.g. Click ... }
- { e.g. Error ... }
Expected Output
Actual Output
Additional information
Screenshots (optional)
Metadata
Metadata
Assignees
Labels
buguse for describing something not working as expecteduse for describing something not working as expectedneeds triageuse to identify issue needing triage from Filigran Product teamuse to identify issue needing triage from Filigran Product team