Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error importing a new entitie "Location" via pycti on versions 4.1.0/4.1.1 #1057

Closed
Alfon-sec opened this issue Feb 4, 2021 · 0 comments
Closed
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Milestone

Comments

@Alfon-sec
Copy link
Contributor

Description

since version 4.1.0 i cant import a new location (also tested in 4.1.2), same code on version 4.0.5 works perfectly

Environment

Reproducible Steps

  1. Run my import script as always
  2. Tried to create the entitie:
    def create_loc(act_loc,date,o_api_cli,stan_id):
    location ={"type": "location",
    "id": stan_id,
    "created": date,
    "modified": date,
    "name": act_loc,
    "country": act_loc.lower()
    }
    o_api_cli.stix2.import_object(location, update=True)
  3. Gives an error on the import_object

Expected Output

it should create/update the object

Actual Output

ValueError: {'name': 'UnsupportedError', 'message': 'Cant create key for Position from empty data'}

Additional information

opencti-log:

Screenshot 2021-02-04 at 13 14 16

@SamuelHassine SamuelHassine added the bug use for describing something not working as expected label Feb 5, 2021
@SamuelHassine SamuelHassine added this to the Release 4.2.0 milestone Feb 5, 2021
@SamuelHassine SamuelHassine added the solved use to identify issue that has been solved (must be linked to the solving PR) label Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Projects
None yet
Development

No branches or pull requests

2 participants