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

[misp] Crash because of non-nullable field #3156

Open
uncycler opened this issue Dec 19, 2024 · 0 comments
Open

[misp] Crash because of non-nullable field #3156

uncycler opened this issue Dec 19, 2024 · 0 comments
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

Comments

@uncycler
Copy link

Description

The connector misp returns this error and crash:

Traceback (most recent call last):                                                                                                                                                                                                                             
  File "/opt/opencti-connector-misp/misp.py", line 2510, in <module>                                                                                                                                                                                           
    mispConnector.run()                                                                                                                                                                                                                                        
  File "/opt/opencti-connector-misp/misp.py", line 427, in run                                                                                                                                                                                                 
    processed_events_last_timestamp = self.process_events(work_id, events)                                                                                                                                                                                     
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                     
  File "/opt/opencti-connector-misp/misp.py", line 617, in process_events                                                                                                                                                                                      
    event_elements = self.prepare_elements(                                                                                                                                                                                                                    
                     ^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                    
  File "/opt/opencti-connector-misp/misp.py", line 1947, in prepare_elements                                                                                                                                                                                   
    threats = self.helper.api.stix_domain_object.list(                                                                                                                                                                                                         
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                         
  File "/usr/local/lib/python3.12/site-packages/pycti/entities/opencti_stix_domain_object.py", line 1065, in list                                                                                                                                              
    result = self.opencti.query(                                                                                                                                                                                                                               
             ^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                               
  File "/usr/local/lib/python3.12/site-packages/pycti/api/opencti_api_client.py", line 368, in query                                                                                                                                                           
    raise ValueError(value_error)                                                                                                                                                                                                                              
ValueError: {'name': 'INTERNAL_SERVER_ERROR', 'error_message': 'Cannot return null for non-nullable field AttackPattern.objectMarking.'}

Environment

  1. Docker
  2. OpenCTI version: 6.4.4

Reproducible Steps

N/A

Expected Output

N/A

Actual Output

ValueError: {'name': 'INTERNAL_SERVER_ERROR', 'error_message': 'Cannot return null for non-nullable field AttackPattern.objectMarking.'}

@uncycler uncycler added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team labels Dec 19, 2024
@nino-filigran nino-filigran added the filigran support [optional] use to identify an issue related to feature developed & maintained by Filigran. label Dec 20, 2024
@romain-filigran romain-filigran removed the needs triage use to identify issue needing triage from Filigran Product team label Jan 7, 2025
@romain-filigran romain-filigran added this to the Bugs backlog milestone Jan 7, 2025
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 filigran support [optional] use to identify an issue related to feature developed & maintained by Filigran.
Projects
None yet
Development

No branches or pull requests

3 participants