Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting module can break cable edit functionality #13443

Closed
wz4 opened this issue Aug 11, 2023 · 4 comments
Closed

Deleting module can break cable edit functionality #13443

wz4 opened this issue Aug 11, 2023 · 4 comments
Labels
status: duplicate This issue has already been raised type: bug A confirmed report of unexpected behavior in the application

Comments

@wz4
Copy link

wz4 commented Aug 11, 2023

NetBox version

3.5.7

Python version

3.9

Steps to Reproduce

  1. Add module with ports to a device
  2. Add cable and terminate at least one end to a port on the module
  3. Delete the module
  4. Try to edit the cable
  5. Server error is produced

Expected Behavior

A module should not be allowed to be deleted if it has ports that are terminated to one end of a cable.

Observed Behavior

Error generated when trying to edit the cable.

<class 'AttributeError'>

'str' object has no attribute 'label'

@wz4 wz4 added the type: bug A confirmed report of unexpected behavior in the application label Aug 11, 2023
@jeremystretch
Copy link
Member

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@jeremystretch jeremystretch added the status: revisions needed This issue requires additional information to be actionable label Aug 11, 2023
@wz4
Copy link
Author

wz4 commented Aug 11, 2023

Revised Steps to Reproduce

Step 1:
Create New Module Type (Devices -> Module Type)

  1. Create new Module Type
  2. Add Components -> Rear Ports

Step2:
Create New Device (Devices -> Devices)

  1. Create New Device
  2. Add Components -> Module Bay
  3. Insert created Module Type into Module Bay
  4. Repeat for a second device

Step3:
Connect Rear Ports (Devices -> Devices -> [Device])

  1. Select Rear Ports tab
  2. Connect a Rear Port to a Rear Port of second Device
  3. Note cable is created

Step 4:
Remove Module (Devices -> Devices -> [Device])

  1. Select Module Bays tab
  2. Remove inserted Module

Step 5:
Edit Cable (Connections -> Cables)

  1. Select Cable that was created in Step 3
  2. Select Edit
  3. AttributeError is produced

@DanSheps
Copy link
Member

DanSheps commented Aug 11, 2023

Please use the search in the future

@DanSheps
Copy link
Member

Duplicate of #11460

@DanSheps DanSheps marked this as a duplicate of #11460 Aug 11, 2023
@DanSheps DanSheps added status: duplicate This issue has already been raised and removed status: revisions needed This issue requires additional information to be actionable labels Aug 11, 2023
@DanSheps DanSheps closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: duplicate This issue has already been raised type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants