Repository navigation
Fixed crash on JSON null values in host_specific.json - #6507
Conversation
Reject null scalar values and keep loading valid entries. Changelog: Title Ticket: none Signed-off-by: Daniel JB Clark <djbclark@gmail.com>
|
Thanks for submitting a pull request! Maybe @craigcomstock can review this? |
|
@cf-bottom Jenkins please :) |
|
Alright, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/15158/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-15158/ |
craigcomstock
left a comment
There was a problem hiding this comment.
Looks good to me. Thanks!
craigcomstock
left a comment
There was a problem hiding this comment.
Of course. We must wait on CI to be green.
|
Is there a way I can get to this, or can someone with access (I get 403) copy-paste? https://ci.cfengine.com/job/sequential-tests/1292/consoleText |
|
@cf-bottom Jenkins again please :) |
|
Alright, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/15180/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-15180/ |
|
Backport to 3.24.x: #6522 |
|
Backport to 3.27.x: #6523 |
A null variable value in
host_specific.jsoncrashedcf-agentandcf-promises. Reject it and keep loading valid entries.Behavior chosen: a scalar null is logged as an error and skipped, the rest of the file still loads, and nulls inside lists and data keep their current meaning. If you would prefer it to be fatal, an empty string, or to undefine the variable, I can change it.
Debug test: fails before, passes after; 12/12 CMDB tests pass. AI-assisted.
Details: issue, tests and reviews.