You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the below code snippet, you are looking for "mime/type" in observable_data, then try to assign the value, but using the "mime_type" key.
if "payload_bin" in observable_data and "mime/type" in observable_data:
self.add_file(
id=result["data"]["stixCyberObservableAdd"]["id"],
file_name=(
observable_data["x_opencti_additional_names"][0]
if "x_opencti_additional_names" in observable_data
and len(observable_data["x_opencti_additional_names"]) > 0
else "artifact.bin"
),
data=base64.b64decode(observable_data["payload_bin"]),
mime_type=observable_data["mime_type"],
)
Environment
gitlab in master branch
The text was updated successfully, but these errors were encountered:
sweet-mentat
added
bug
use for describing something not working as expected
needs triage
use to identify issue needing triage from Filigran Product team
labels
Apr 12, 2024
Description
in the below code snippet, you are looking for "mime/type" in observable_data, then try to assign the value, but using the "mime_type" key.
Environment
gitlab in master branch
The text was updated successfully, but these errors were encountered: