When editing Device, removing Rack attribute does not remove Rack Face attribute #11630

Open
opened 2025-12-29 21:47:51 +01:00 by adam · 4 comments
Owner

Originally created by @postilion on GitHub (Sep 18, 2025).

NetBox Edition

NetBox Community

NetBox Version

v4.4.1

Python Version

3.12

Steps to Reproduce

  1. from existing Device, click on Edit
  2. in Edit dialogue, click the (x) on right side of Rack field to remove attribute value
  3. Position attribute is cleared, but Rack Face attribute remains set
  4. Click Save and get error "Cannot select a rack face without assigning a rack."

Expected Behavior

Rack Face attribute value should be cleared, as Position is

Image

Observed Behavior

When trying to save, error "Cannot select a rack face without assigning a rack" was received, and Position attribute was reset to previous value.

Image
Originally created by @postilion on GitHub (Sep 18, 2025). ### NetBox Edition NetBox Community ### NetBox Version v4.4.1 ### Python Version 3.12 ### Steps to Reproduce 1. from existing Device, click on Edit 2. in Edit dialogue, click the (x) on right side of Rack field to remove attribute value 3. Position attribute is cleared, but Rack Face attribute remains set 4. Click Save and get error "Cannot select a rack face without assigning a rack." ### Expected Behavior Rack Face attribute value should be cleared, as Position is <img width="780" height="240" alt="Image" src="https://github.com/user-attachments/assets/3cf75059-f898-4a47-82e9-d998a0b4ee7a" /> ### Observed Behavior When trying to save, error "Cannot select a rack face without assigning a rack" was received, and Position attribute was reset to previous value. <img width="780" height="240" alt="Image" src="https://github.com/user-attachments/assets/081ce9e4-f546-4ef5-8701-911a0f4c619a" />
adam added the type: bugstatus: needs ownernetboxseverity: low labels 2025-12-29 21:47:51 +01:00
Author
Owner

@AliMickey commented on GitHub (Sep 18, 2025):

+1, thanks for raising this and can confirm same behaviour on v4.3.7 (this isn't new behaviour, goes back a few major versions but I never bothered raising it).

@AliMickey commented on GitHub (Sep 18, 2025): +1, thanks for raising this and can confirm same behaviour on v4.3.7 (this isn't new behaviour, goes back a few major versions but I never bothered raising it).
Author
Owner

@DanSheps commented on GitHub (Oct 6, 2025):

Should be fixed with the introduction of the new method by #20387 (#20375). May need to edit the bulk edit buttons though, will investigate this in a bit.

@DanSheps commented on GitHub (Oct 6, 2025): Should be fixed with the introduction of the new method by #20387 (#20375). May need to edit the bulk edit buttons though, will investigate this in a bit.
Author
Owner

@jnovinger commented on GitHub (Oct 30, 2025):

Should be fixed with the introduction of the new method by #20387 (#20375). May need to edit the bulk edit buttons though, will investigate this in a bit.

Any update on this?

@jnovinger commented on GitHub (Oct 30, 2025): > Should be fixed with the introduction of the new method by [#20387](https://github.com/netbox-community/netbox/pull/20387) ([#20375](https://github.com/netbox-community/netbox/issues/20375)). May need to edit the bulk edit buttons though, will investigate this in a bit. Any update on this?
Author
Owner

@DanSheps commented on GitHub (Dec 11, 2025):

I need a better way to track stuff like this... completely dropped off my radar. I don't know why I was talking about Bulk Edit buttons (maybe a hallucination similar to artificial intelligence but real intelligence instead).

Either way, the issue appears to be that the face isn't cleared and I am wondering if we should just silently clear it when there is no rack and position in the request.

@DanSheps commented on GitHub (Dec 11, 2025): I need a better way to track stuff like this... completely dropped off my radar. I don't know why I was talking about Bulk Edit buttons (maybe a hallucination similar to artificial intelligence but real intelligence instead). Either way, the issue appears to be that the face isn't cleared and I am wondering if we should just silently clear it when there is no rack and position in the request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11630