Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Dashboard can become permanently broken when misconfiguring DEFAULT_DASHBOARD #14703

Closed
srngh opened this issue Jan 5, 2024 · 1 comment · Fixed by #14903
Closed

User Dashboard can become permanently broken when misconfiguring DEFAULT_DASHBOARD #14703

srngh opened this issue Jan 5, 2024 · 1 comment · Fixed by #14903
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@srngh
Copy link

srngh commented Jan 5, 2024

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.

@srngh srngh added the type: bug A confirmed report of unexpected behavior in the application label Jan 5, 2024
@srngh
Copy link
Author

srngh commented 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.

@DanSheps DanSheps added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows labels Jan 19, 2024
@jeremystretch jeremystretch self-assigned this Jan 23, 2024
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Jan 23, 2024
@jeffgdotorg jeffgdotorg changed the title User Dashboard can become permanently broken when missconfiguring DEFAULT_DASHBOARD User Dashboard can become permanently broken when misconfiguring DEFAULT_DASHBOARD Feb 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
3 participants