Device/VM name unique enforcement is case sensitive #6417

Closed
opened 2025-12-29 19:40:26 +01:00 by adam · 2 comments
Owner

Originally created by @Mizarv on GitHub (Apr 27, 2022).

NetBox version

v3.1.9

Python version

3.8

Steps to Reproduce

  1. Create a cluster
  2. Create VM "ABC"
  3. Create VM "abc"

Expected Behavior

Error "A virtual machine with this name already exists in the assigned cluster"

Observed Behavior

New VM "abc" is successfully created despite VM "ABC" existing.

I believe the bug is applicable to Devices and other models too

Originally created by @Mizarv on GitHub (Apr 27, 2022). ### NetBox version v3.1.9 ### Python version 3.8 ### Steps to Reproduce 1. Create a cluster 2. Create VM "ABC" 3. Create VM "abc" ### Expected Behavior Error "A virtual machine with this name already exists in the assigned cluster" ### Observed Behavior New VM "abc" is successfully created despite VM "ABC" existing. I believe the bug is applicable to Devices and other models too
adam added the type: bugstatus: under review labels 2025-12-29 19:40:26 +01:00
adam closed this issue 2025-12-29 19:40:27 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 27, 2022):

I'm not sure it's accurate to frame this as a bug: Uniqueness enforcement is exactly that, and "ABC" is different from "abc", though I understand your viewpoint.

You might consider re-submitting this as a feature request with a use case, so the community can debate the merits (and potential pitfalls) of the change in behavior.

@jeremystretch commented on GitHub (Apr 27, 2022): I'm not sure it's accurate to frame this as a bug: Uniqueness enforcement is exactly that, and "ABC" is different from "abc", though I understand your viewpoint. You might consider re-submitting this as a feature request with a use case, so the community can debate the merits (and potential pitfalls) of the change in behavior.
Author
Owner

@Mizarv commented on GitHub (Apr 28, 2022):

I'm not sure it's accurate to frame this as a bug: Uniqueness enforcement is exactly that, and "ABC" is different from "abc", though I understand your viewpoint.

You might consider re-submitting this as a feature request with a use case, so the community can debate the merits (and potential pitfalls) of the change in behavior.

Sure, I have raised #9249

@Mizarv commented on GitHub (Apr 28, 2022): > I'm not sure it's accurate to frame this as a bug: Uniqueness enforcement is exactly that, and "ABC" is different from "abc", though I understand your viewpoint. > > You might consider re-submitting this as a feature request with a use case, so the community can debate the merits (and potential pitfalls) of the change in behavior. Sure, I have raised #9249
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6417