Skip to content

Segfault on invalid check #305

@s-newman

Description

@s-newman

Bug Report

If Dynamicbeat tries to unpack a check that doesn't define one of the required metadata settings, it will segfault.

Expected behavior

Dynamicbeat should gracefully handle invalid checks by printing an error and moving on.

Actual behavior

Dynamicbeat crashed due to a segfault, which made it difficult to find the offending check.

Replication steps

  1. Deploy a Scorestack instance
  2. Add a check without one of the required settings (id, name, type, group, score_weight)
  3. Run Dynamicbeat against the Scorestack instance

Screenshots

Screen Shot 2021-03-23 at 10 43 45 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions