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
The issue is that the allow_custom=True is not inherited in common properties that contain custom_properties.
Common STIX properties allow for adding custom properties using the allow_custom=True option. So, STIX does not restrict us for adding custom properties in a Common STIX property.
An example to reproduce the issue is:
Create an "External Reference" common property and add some custom properties
Create a Malware SDO and add the external-reference of the previous step.
Save the Malware SDO to a json file
Try to parse this Malware SDO via obj = parse(file_handle, allow_custom=True)
The error that is returned is the following:
"stix2.exceptions.InvalidValueError: Invalid value for Malware 'external_references': Unexpected properties for ExternalReference: (customizedproperty)."
This might be related to the issue #176 and issue #333.
I apologize if it is a false positive and I am doing something wrong. Please let me know what I should do.
The issue is that the allow_custom=True is not inherited in common properties that contain custom_properties.
Common STIX properties allow for adding custom properties using the allow_custom=True option. So, STIX does not restrict us for adding custom properties in a Common STIX property.
An example to reproduce the issue is:
The error that is returned is the following:
"stix2.exceptions.InvalidValueError: Invalid value for Malware 'external_references': Unexpected properties for ExternalReference: (customizedproperty)."
This might be related to the issue #176 and issue #333.
I apologize if it is a false positive and I am doing something wrong. Please let me know what I should do.
The json file is the following:
The text was updated successfully, but these errors were encountered: