Skip to content

User Dashboard can become permanently broken when misconfiguring DEFAULT_DASHBOARD #14703

@srngh

Description

@srngh

Deployment Type

Self-hosted

NetBox Version

v3.7.0

Python Version

3.9

Steps to Reproduce

  1. User johndoe modifies their dashboard over the GUI
  2. Administrator changes DEFAULT_DASHBOARD in configuration.py with a broken configuration (Assigned a wrong value in a bookmarks widget)
  3. Bookmark widget looks fine without logging in since it won't load any data
  4. After johndoe logs in, they reset their dashboard
  5. Site crashes with an Field Error Exception since the dashboard is misconfigured
  6. johndoe can't reset their dashboard anymore, even after the error in DEFAULT_DASHBOARD is corrected

Expected Behavior

When resetting the dashboard, I would expect it to now always follow the changes of DEFAULT_DASHBOARD.

Observed Behavior

Resetting the dashboard seems to copy the current state of DEFAULT_DASHBOARD. If that state is broken, a user cannot reset it anymore.
Only the main page with the dashboard crashes.

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