Skip to content

ObjectCountsWidget can brick Netbox home page #17341

Closed
@candlerb

Description

@candlerb

Deployment Type

Self-hosted

NetBox Version

v4.0.10

Python Version

3.12

Steps to Reproduce

  1. Go to home page
  2. Click on settings cog next to an Object Counts widget
  3. Add "DCIM > Console Server Port Template" to the list of objects to count, and click Save

image

Expected Behavior

Netbox continues to function, or the change is rejected.

Observed Behavior

Netbox web UI crashes and is unusable. There is no way to recover from the web UI.

image

This is because there is a hard-coded assumption in the widget that all models have a foo_list endpoint, but template components don't.

Originally raised in discussion #17336

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions