Skip to content

Clearing "Widget type" field produces a ValueError: Unregistered widget class: #18944

@bctiemann

Description

@bctiemann

Deployment Type

Self-hosted

NetBox Version

v4.2.5

Python Version

3.10

Steps to Reproduce

  1. On the Dashboard, unlock and click "Add Widget"
  2. On the popup dialog, click the X to clear the "Widget type" field (or backspace over the preselected value)
  3. App crashes with the below observed error

Expected Behavior

App should not crash; form should not trigger any dynamic parsing that tries to validate an empty input value

Observed Behavior

ValueError at /extras/dashboard/widgets/add/
Unregistered widget class:
Request URL: http://127.0.0.1:8000/extras/dashboard/widgets/add/?widget_class=

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions