Description
Deployment Type
Self-hosted
NetBox Version
v4.2.6
Python Version
3.12
Steps to Reproduce
- Go to https://[SERVER_URL]/api/dcim/rear-ports/
- Select any existing port by clicking on its "url"
- The REST API now display the data for a single port, for example:
https://[SERVER_URL]/api/dcim/rear-ports/70479/ - Append "paths/" to this URL: https://[SERVER_URL]/api/dcim/rear-ports/70479/paths
Expected Behavior
The REST API should return the CablePaths which traverse the given pass-through port.
Observed Behavior
'AttributeError' is raised.
'NoneType' object has no attribute 'model'
This error is not observed on NetBox 4.2.5
I believe this may have been introduced by #18826 ?