User Dashboard can become permanently broken when misconfiguring DEFAULT_DASHBOARD #9047

Closed
opened 2025-12-29 20:44:47 +01:00 by adam · 1 comment
Owner

Originally created by @srngh on GitHub (Jan 5, 2024).

Originally assigned to: @jeremystretch on GitHub.

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.

Originally created by @srngh on GitHub (Jan 5, 2024). Originally assigned to: @jeremystretch on GitHub. ### 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.
adam added the type: bugstatus: acceptedseverity: medium labels 2025-12-29 20:44:47 +01:00
adam closed this issue 2025-12-29 20:44:47 +01:00
Author
Owner

@srngh commented on GitHub (Jan 8, 2024):

Workaround: I was able to reset the dashboard by logging in with my test user johndoe and appending /extras/dashboard/reset/ to the URL. From there I could reset the dashboard as i normally would.

@srngh commented on GitHub (Jan 8, 2024): Workaround: I was able to reset the dashboard by logging in with my test user johndoe and appending /extras/dashboard/reset/ to the URL. From there I could reset the dashboard as i normally would.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9047