Error when ingesting a File object with a too big integer in the size field #2097
Labels
bug
use for describing something not working as expected
filigran support
[optional] use to identify an issue related to feature developed & maintained by Filigran.
Milestone
Description
I am working on an import connector which ingests File objects into OpenCTI. It works quite fine, but when the size field is too big, the ingestion fails. I got the following error message:
{'name': 'Variable "$StixFile" got invalid value 2945216659 at "StixFile.size"; Int cannot represent non 32-bit signed integer value: 2945216659', 'message': 'Variable "$StixFile" got invalid value 2945216659 at "StixFile.size"; Int cannot represent non 32-bit signed integer value: 2945216659'}
The created File object sent to OpenCTI in the STIX bundle was as follows:
"File object: {\"type\": \"file\", \"spec_version\": \"2.1\", \"id\": \"file--37e7013e-9425-59ac-bda4-f2d905bf9714\", \"hashes\": {\"MD5\": \"c0c627aca767007df499630de3d19cec\", \"SHA-1\": \"51c3f6dc2af41688819adc20cf95ea0f1110ec1e\", \"SHA-256\": \"30b9cce3916958e1a1d57e1513af40c8891daadab16fc7ab6fcab1392efaa060\"}, \"size\": 2945216659, \"name\": \"MMD CLOUD PRIVATE.rar\", \"object_marking_refs\": [\"marking-definition--f88d31f6-486f-44da-b317-01333bde0b82\"], \"created_by_ref\": \"identity--0a225431-f1d7-5e77-99fc-6f5d392b92d9\"}"}
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
Expected Output
File object ingested
Actual Output
Error message (see above)
The text was updated successfully, but these errors were encountered: