-
Notifications
You must be signed in to change notification settings - Fork 3k
AttributeError when logged out user tries to export devices #22397
Copy link
Copy link
Labels
netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: 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
Milestone
Metadata
Metadata
Assignees
Labels
netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availableDoes not significantly disrupt application functionality, or a workaround is availablestatus: 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
Type
Fields
Give feedbackNo fields configured for Bug.
NetBox Edition
NetBox Community
NetBox Version
v4.6.2
Python Version
3.12
Steps to Reproduce
Expected Behavior
CSV export works.
Observed Behavior
You get a 500:
Code location: https://github.com/netbox-community/netbox/blob/v4.6.2/netbox/netbox/views/generic/bulk_views.py#L184
The error is similar to the one reported in #21784 and similar to there, I'd be happy to put up a PR to fix this by guarding it behind
request.user.is_authenticated(I might also check if there are other places in the code that have the same pattern so maybe we can fix them all together).