Resizing a widget to the be the smallest possible width or height will cause the dashboard to throw an exception. #12106
Labels
beta
Concerns a bug/feature in a beta release
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.5.0-beta1
Python version
3.10
Steps to Reproduce
Expected Behavior
Save without issue.
Observed Behavior
The dashboard throws an exception:
Internal Server Error: /
Traceback (most recent call last):
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 56, in innerers/exception.py", line 56, in inner
response = get_response(request)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_responseers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)rgs)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 103, in viewric/base.py", line 103, in view
return self.dispatch(request, *args, **kwargs)
File "/opt/netbox/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 142, in dispatchric/base.py", line 142, in dispatch
return handler(request, *args, **kwargs)
File "/opt/netbox/netbox/netbox/views/misc.py", line 36, in get
dashboard = get_dashboard(request.user).get_layout()
File "/opt/netbox/netbox/extras/models/dashboard.py", line 43, in get_layout_layout
widget.set_layout(grid_item)
File "/opt/netbox/netbox/extras/dashboard/widgets.py", line 61, in set_layoutt_layout
self.width = grid_item['w']
KeyError: 'w'
The text was updated successfully, but these errors were encountered: