Skip to content

SOAR Playbook Builder crashes with "Cannot read property 'id' of undefined" on create / edit rule #2129

@AlexSanchez-bit

Description

@AlexSanchez-bit

Acknowledgements

Describe the bug

The SOAR Playbook Builder's createRule() flow accesses this.rule.id
without first verifying that this.rule exists. When the component is
entered without a pre-selected rule (i.e. the user clicks Create Rule
from scratch) the access throws TypeError: Cannot read property 'id' of undefined, leaving the builder in a broken state.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

createRule() should guard against a missing rule object: if this.rule
is undefined it should proceed in creation mode; only when both this.rule
and this.rule.id are present should it dispatch to the edit path.

Current Behavior

Opening the Playbook Builder and clicking Create Rule without a prior
selection throws a JavaScript TypeError in the browser console:

TypeError: Cannot read property 'id' of undefined
    at PlaybookBuilderComponent.createRule (playbook-builder.component.ts)

The create / edit dialog never opens.

Reproduction Steps

  1. Open SOAR → Playbook Builder.
  2. Click Create Rule before selecting any existing rule.
  3. Observe the Cannot read property 'id' of undefined exception in the
    browser console; the rule editor does not open.

Possible Solution

No response

Additional Information/Context

No response

UTMStack Version

v11.2.8

Operating System and version

Hypervisor and Version | Server Vendor and Model

Browser and version

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

Status
👀 In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions