Project

General

Profile

Actions

Bug #2867

closed

Failure with missing rule params

Added by Shivani Bhardwaj over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
low
Difficulty:
low
Label:
Beginner, Outreachy

Description

If someone by mistake forgets a semicolon or changes a rule to not have a gid or sid, it leads to the following error:

Traceback (most recent call last):
  File "/bin/suricata-update", line 33, in <module>
    sys.exit(main.main())
  File "/bin/../lib/python3.4/site-packages/suricata/update/main.py", line 1454, in main
    sys.exit(_main())
  File "/bin/../lib/python3.4/site-packages/suricata/update/main.py", line 1334, in _main
    rulemap = build_rule_map(rules)
  File "/bin/../lib/python3.4/site-packages/suricata/update/main.py", line 696, in build_rule_map
    if rule.id not in rulemap:
  File "/bin/../lib/python3.4/site-packages/suricata/update/rule.py", line 121, in id
    return (int(self.gid), int(self.sid))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Actions #1

Updated by Shivani Bhardwaj over 5 years ago

  • Assignee deleted (Shivani Bhardwaj)
  • Difficulty set to low
  • Label Beginner, Outreachy added
Actions #2

Updated by Shivani Bhardwaj over 5 years ago

  • Status changed from Assigned to Feedback
Actions #3

Updated by Andreas Herz over 5 years ago

  • Assignee set to Community Ticket
Actions #4

Updated by Shivani Bhardwaj over 5 years ago

  • Status changed from Feedback to Resolved
Actions #6

Updated by Shivani Bhardwaj over 5 years ago

  • Status changed from Resolved to Feedback
Actions #7

Updated by Jason Ish about 5 years ago

  • Target version changed from TBD to 1.1.0rc1
Actions #8

Updated by Jason Ish about 5 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF