error when filtering choice sets when editing/creating a custom field #8829

Closed
opened 2025-12-29 20:41:47 +01:00 by adam · 0 comments
Owner

Originally created by @ITJamie on GitHub (Nov 9, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v.3.6.4

Python version

3.11

Steps to Reproduce

  • create a custom field choice set
  • start creating a custom field. attempt to search in the "choice set" field.

UI error should pop up (or see a failure in browser debug window
error can easily be triggered by going to /api/extras/custom-field-choice-sets/?brief=true&q=abc on a netbox instance

Expected Behavior

choice set should filter

Observed Behavior

error is triggered in browser

<class 'django.db.utils.DataError'>

malformed array literal: "abc"
LINE 1: ... "extras_customfieldchoiceset"."extra_choices" @> 'abc'::var...
                                                             ^
DETAIL:  Array value must start with "{" or dimension information.

Python version: 3.11.4
NetBox version: 3.6.4
Plugins: 
  netbox_gateways: 0.4.3
Screenshot 2023-11-09 at 21 41 43
Originally created by @ITJamie on GitHub (Nov 9, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v.3.6.4 ### Python version 3.11 ### Steps to Reproduce - create a custom field choice set - start creating a custom field. attempt to search in the "choice set" field. UI error should pop up (or see a failure in browser debug window error can easily be triggered by going to `/api/extras/custom-field-choice-sets/?brief=true&q=abc` on a netbox instance ### Expected Behavior choice set should filter ### Observed Behavior error is triggered in browser ``` <class 'django.db.utils.DataError'> malformed array literal: "abc" LINE 1: ... "extras_customfieldchoiceset"."extra_choices" @> 'abc'::var... ^ DETAIL: Array value must start with "{" or dimension information. Python version: 3.11.4 NetBox version: 3.6.4 Plugins: netbox_gateways: 0.4.3 ``` <img width="1107" alt="Screenshot 2023-11-09 at 21 41 43" src="https://github.com/netbox-community/netbox/assets/1613241/333911b5-18fa-4fc7-bd9c-99d5f52dd535">
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:41:47 +01:00
adam closed this issue 2025-12-29 20:41:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8829