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
Describe the bug
Events are uploaded twice using timesketch_import_client with csv or jsonl files.
To Reproduce
Steps to reproduce the behavior:
Generate csv or json file
Use timesketch_importer.py to import the file
Events are imported twice in timesketch
Expected behavior
Events should be imported only once.
Additional context
The issue is located in the ImportStreamer class.
Private property _data_lines is not empty after calling the flush method.
When the ImportStreamer object is destroyed, flush method is called again.
Fix: ImportStreamer._upload_data_buffer method should call _reset method in case of successfull data upload.
The text was updated successfully, but these errors were encountered:
Describe the bug
Events are uploaded twice using timesketch_import_client with csv or jsonl files.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Events should be imported only once.
Additional context
The issue is located in the ImportStreamer class.
Private property _data_lines is not empty after calling the flush method.
When the ImportStreamer object is destroyed, flush method is called again.
Fix: ImportStreamer._upload_data_buffer method should call _reset method in case of successfull data upload.
The text was updated successfully, but these errors were encountered: