SVG cable trace fails with only one end terminated in an interface #5411

Closed
opened 2025-12-29 19:27:40 +01:00 by adam · 1 comment
Owner

Originally created by @ulilaube on GitHub (Sep 23, 2021).

NetBox version

3.0.3

Python version

3.9

Steps to Reproduce

I upgradeded from 2.11.11 to 3.0.3. When clicking on the 'download SVG' Button or directly trying an URL like

https://192.168.122.15/api/dcim/interfaces/1019/trace/?render=svg

I get an error.
This trace has only one endpoint terminated in a switch interface, the one identified in the URL. The other end is "open" in some patch panel front or rear port. If I connect the open end to another switch interface the error goes away and I get the correct SVG. If I delete a patch cable from one of the switch interfaces to a patch panel front port the error reappears.

Expected Behavior

An SVG of a partial trace would be cool. At minimum a message that a partial trace is not possible.

Observed Behavior

I get a HTTP 500 internal server error with the following message:

<class 'AttributeError'>

'NoneType' object has no attribute 'get_absolute_url'
Originally created by @ulilaube on GitHub (Sep 23, 2021). ### NetBox version 3.0.3 ### Python version 3.9 ### Steps to Reproduce I upgradeded from 2.11.11 to 3.0.3. When clicking on the 'download SVG' Button or directly trying an URL like https://192.168.122.15/api/dcim/interfaces/1019/trace/?render=svg I get an error. This trace has only one endpoint terminated in a switch interface, the one identified in the URL. The other end is "open" in some patch panel front or rear port. If I connect the open end to another switch interface the error goes away and I get the correct SVG. If I delete a patch cable from one of the switch interfaces to a patch panel front port the error reappears. ### Expected Behavior An SVG of a partial trace would be cool. At minimum a message that a partial trace is not possible. ### Observed Behavior I get a HTTP 500 internal server error with the following message: ``` <class 'AttributeError'> 'NoneType' object has no attribute 'get_absolute_url' ```
adam added the type: bugstatus: duplicate labels 2025-12-29 19:27:40 +01:00
adam closed this issue 2025-12-29 19:27:40 +01:00
Author
Owner

@DanSheps commented on GitHub (Sep 23, 2021):

This should be fixed in #7294

@DanSheps commented on GitHub (Sep 23, 2021): This should be fixed in #7294
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5411