-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Labels
severity: 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
Description
NetBox Edition: NetBox Community
NetBox Version: v4.4.4
Python Version: 3.12
Steps to Reproduce:
- Navigate to
http://127.0.0.1:8000/api/core/object-changes/
in a web browser (Firefox, Chrome, Safari) - Observe the AttributeError
Alternatively, reproduce via curl:
curl 'http://127.0.0.1:8000/api/core/object-changes/' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
Expected Behavior:
The browsable API page should render with the list of object changes.
Observed Behavior:
The request fails with an AttributeError:
AttributeError at /api/core/object-changes/
'NoneType' object has no attribute 'model'
Exception Location: /path/to/netbox/utilities/api.py, line 77, in get_view_name
The API endpoint functions correctly when accessed with Accept: application/json
or with the ?format=json
query parameter. The bug only appears to affect HTML rendering for browser access.
Etibru
Metadata
Metadata
Assignees
Labels
severity: 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