Skip to content

Integer arrays serialized as strings in changelog snapshot #9223

Closed
@jeremystretch

Description

@jeremystretch

NetBox version

v3.2.1

Python version

3.8

Steps to Reproduce

  1. Create a service with all required parameters. Set the ports to 80, 8080.
  2. View the creation record in the service's change log

Expected Behavior

The list of designated ports (which are stored on the model as an array of integers) should be recorded as ports: [80, 8080].

Observed Behavior

The ports are serialized as a string: ports: "[\"80\", \"8080\"]".

This seems to be a limitation of Django's built-in JSON serializer, which apparently does not support array types.

Metadata

Metadata

Assignees

Labels

status: 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