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

Closed
opened 2025-12-29 21:37:38 +01:00 by adam · 0 comments
Owner

Originally created by @bctiemann on GitHub (Mar 18, 2025).

Originally assigned to: @jnovinger on GitHub.

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=
Originally created by @bctiemann on GitHub (Mar 18, 2025). Originally assigned to: @jnovinger on GitHub. ### 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= ```
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:37:38 +01:00
adam closed this issue 2025-12-29 21:37:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10913