Skip to content

Custom Object Field names can clash with internal fields #95

@timhall99

Description

@timhall99

Plugin Version

0.1.0

NetBox Version

4.3.1

Python Version

3.12.3

Steps to Reproduce

create custom object type "senders"
create custom object type field
Name = "id", Label = "Id"
Create custom object

Expected Behavior

When creating custom object, the field label displayed should be "Id", however the field name is going to clash with an internal database column name and should either be disallowed or modified internally to protect the database schema.

Observed Behavior

At this point, it is impossible to delete the field "id" or the custom object "senders", as we get a referential integrity error warning message.

Further investigation reveals additional table created in Postgres

custom_objects_1
custom_objects_2
custom_objects_2_senders
custom_objects_3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions