-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
betaConcerns a bug/feature in a beta releaseConcerns a bug/feature in a beta releaseseverity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.6.0-beta2
Python version
3.11
Steps to Reproduce
- Set
LOGIN_REQUIRED = Falsein configuration.py - Open the frontpage without a logged in session
Expected Behavior
The home view should render
Observed Behavior
The following exception is thrown:
Field 'id' expected a number but got <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f765c2bf150>>.
Issue is here:
netbox/netbox/extras/dashboard/widgets.py
Line 349 in 5709bc3
| bookmarks = Bookmark.objects.filter(user=request.user).order_by(self.config['order_by']) |
request.user is passed to the filter regardless of the user being logged in or not.
haki99 and mattieserver
Metadata
Metadata
Assignees
Labels
betaConcerns a bug/feature in a beta releaseConcerns a bug/feature in a beta releaseseverity: mediumResults in substantial degraded or broken functionality for specfic workflowsResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application