Mapping Cables between 2 Devices on front and rear port causes Loop #2240

Closed
opened 2025-12-29 17:24:01 +01:00 by adam · 1 comment
Owner

Originally created by @hotschmaster23 on GitHub (Dec 21, 2018).

Environment

Python version: 3.6
NetBox version: 2.5.1

Steps to Reproduce

1.)Create two patchpanels in devices as object patchpanels. Panel 1 and Panel 2
2.)Create for each device a rear port first and after that a front port each.
3.)Connect the rear ports together and save it
4.)Connect the front ports together

After saving you receive the error
"Server Error
There was a problem with your request. Please contact an administrator.
<class 'RecursionError'>
maximum recursion depth exceeded in comparison"

5.)Then click on button "go to homepage" or click back in browser
6.)You will recognize that the front port is created even though the error appears.
7.)When you now want to delete this created cable connection the same error appears and this cable can never be deleted, also when you want to delete the first created cable connection, so you are in a loop.

After saving you receive the error
"Server Error
There was a problem with your request. Please contact an administrator.
<class 'RecursionError'>
maximum recursion depth exceeded in comparison"

8.) My idea was then to delete one of these devices but that is neither possible.
9.) Every task on these two ports, renaming, deleting, removing cable is not possible
10.) New Ports can be created without any problems, but deleting not possible

Hope this helps to reproduce it.

Expected Behavior

please resolve this handling loop
recursionerror

Observed Behavior

Originally created by @hotschmaster23 on GitHub (Dec 21, 2018). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment Python version: 3.6 NetBox version: 2.5.1 <!-- Describe in detail the steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). --> ### Steps to Reproduce 1.)Create two patchpanels in devices as object patchpanels. Panel 1 and Panel 2 2.)Create for each device a rear port first and after that a front port each. 3.)Connect the rear ports together and save it 4.)Connect the front ports together After saving you receive the error "Server Error There was a problem with your request. Please contact an administrator. <class 'RecursionError'> maximum recursion depth exceeded in comparison" 5.)Then click on button "go to homepage" or click back in browser 6.)You will recognize that the front port is created even though the error appears. 7.)When you now want to delete this created cable connection the same error appears and this cable can never be deleted, also when you want to delete the first created cable connection, so you are in a loop. After saving you receive the error "Server Error There was a problem with your request. Please contact an administrator. <class 'RecursionError'> maximum recursion depth exceeded in comparison" 8.) My idea was then to delete one of these devices but that is neither possible. 9.) Every task on these two ports, renaming, deleting, removing cable is not possible 10.) New Ports can be created without any problems, but deleting not possible Hope this helps to reproduce it. <!-- What did you expect to happen? --> ### Expected Behavior please resolve this handling loop <img width="817" alt="recursionerror" src="https://user-images.githubusercontent.com/28481444/50340109-ef61dc00-0519-11e9-90d7-7b4a8ca1f055.png"> <!-- What happened instead? --> ### Observed Behavior
adam added the type: bugstatus: accepted labels 2025-12-29 17:24:01 +01:00
adam closed this issue 2025-12-29 17:24:01 +01:00
Author
Owner

@hotschmaster23 commented on GitHub (Dec 21, 2018):

we also tested the deletion with rest API but the same error appears, so no chance to delete it

@hotschmaster23 commented on GitHub (Dec 21, 2018): we also tested the deletion with rest API but the same error appears, so no chance to delete it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2240