Skip to content

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

@ITJamie

Description

@ITJamie

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

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions