Actions
Bug #5010
closedfailure with dataset file mishandling
Affected Versions:
Effort:
Difficulty:
Label:
Description
Traceback (most recent call last): File "./bin/suricata-update", line 33, in <module> sys.exit(main.main()) File "/home/ard/Orgs/oisf/suricata-update/suricata/update/main.py", line 1323, in main sys.exit(_main()) File "/home/ard/Orgs/oisf/suricata-update/suricata/update/main.py", line 1259, in _main write_merged(os.path.join(output_filename), rulemap, dep_files) File "/home/ard/Orgs/oisf/suricata-update/suricata/update/main.py", line 497, in write_merged handle_dataset_files(rule, dep_files) File "/home/ard/Orgs/oisf/suricata-update/suricata/update/main.py", line 427, in handle_dataset_files load_attr = [el.strip() for el in rule.dataset.split(",") if "load" in el][0] IndexError: list index out of range
Handle this and support all dataset attributes to avoid this.
Actions