brbzull0 opened a new pull request, #13609: URL: https://github.com/apache/trafficserver/pull/13609
The JSON encoders are yaml-cpp emitters, and yaml-cpp spells null as `~`, so any RPC payload holding a null value was rejected by every JSON parser. `hostdb status` hit this on every freshly started server and still exited 0, so callers saw success and then failed to parse. Initialise the two accumulator nodes as sequences so an empty result is `[]` rather than null, which also satisfies the published schema, and set LowerNull on the four JSON emitters so any remaining null is spelled `null`. Both spellings parse back as null in YAML, so the server's ability to accept YAML input is unaffected. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
