Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Bug] Error while trying to serialize stix object #207

Copy link
Copy link
@scripton8

Description

@scripton8
Issue body actions

Expected Behavior

Printing stix data using normal print command, also tried with MitreAttackData.print_stix_object() function

Actual Behavior

I receive the following error: serialize() should be provided by the STIX2 base class.

Steps to Reproduce the Problem

  1. Get a stix object (in my case with mitre_attack_data=MitreAttackData("tmp/enterprise-attack/enterprise-attack.json") and then I tried to create a list all_data_components=MitreAttackData.get_datacomponents(mitre_attack_data)
  2. Try to print, serialize() or MitreAttackData.print_stix_object() a stix type object from the created list
  3. Error described above should occur
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.