airbus-cyber / graylog-plugin-alert-wizard

Alert Wizard plugin for Graylog to manage the alert rules
Other
46 stars 7 forks source link

Stack trace in the server when creating a rule with the same name #96

Closed c8y3 closed 1 year ago

c8y3 commented 2 years ago

While the alert configuration of the wizard has not been set, there is a bug in the creation of a rule which leads to a stack trace. Scenario:

The problem is in the AlertRuleRessource. This is because the configuration is not present in database until it is updated once. So to correctly retrieve the configuration, one should do a getOrDefault rather than a get.

frantz45 commented 1 year ago

I confirm there is no stack trace in v4.4.0