Config Context differs between JSON / YAML #5555

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

Originally created by @wols on GitHub (Oct 25, 2021).

NetBox version

v2.11.12

Python version

3.7

Steps to Reproduce

  1. insert JSON data with escaped double quotes
{
    "ntp.keys": [
       "501 MD5 no_backslash_\"_in_front_of_double_quotes"
    ]
}
  1. compare

JSON

"501 MD5 no_backslash_\"_in_front_of_double_quotes"

YAML

- 501 MD5 no_backslash_"_in_front_of_double_quotes

Would have been important to #4236
Idea: save data base64-encoded in the database.

Expected Behavior

The same data view.

Observed Behavior

The backslash is not recognized as an escape character.

Originally created by @wols on GitHub (Oct 25, 2021). ### NetBox version v2.11.12 ### Python version 3.7 ### Steps to Reproduce 1. insert JSON data with escaped double quotes ``` { "ntp.keys": [ "501 MD5 no_backslash_\"_in_front_of_double_quotes" ] } ``` 2. compare JSON ``` "501 MD5 no_backslash_\"_in_front_of_double_quotes" ``` YAML ``` - 501 MD5 no_backslash_"_in_front_of_double_quotes ``` Would have been important to #4236 **Idea: save data base64-encoded in the database.** ### Expected Behavior The same data view. ### Observed Behavior The backslash is not recognized as an escape character.
adam added the type: bugstatus: revisions needed labels 2025-12-29 19:29:22 +01:00
adam closed this issue 2025-12-29 19:29:22 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 26, 2021):

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@jeremystretch commented on GitHub (Oct 26, 2021): Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
Author
Owner

@jeremystretch commented on GitHub (Nov 5, 2021):

Closing for lack of response

@jeremystretch commented on GitHub (Nov 5, 2021): Closing for lack of response
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5555