[MXS-739] Maxinfo issuing invalid null's in JSON response Created: 2016-05-26  Updated: 2016-08-11  Resolved: 2016-05-27

Status: Closed
Project: MariaDB MaxScale
Component/s: maxinfo
Affects Version/s: 1.4.3
Fix Version/s: 2.0.0

Type: Bug Priority: Minor
Reporter: Michael Danko (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

For example, when I issue a GET against /variables,

                                                                                
[ { "Variable_name" : "version", "Value" : "1.4.3"},
{ "Variable_name" : "version_comment", "Value" : "MariaDB MaxScale"},
{ "Variable_name" : "basedir", "Value" : NULL},
{ "Variable_name" : "MAXSCALE_VERSION", "Value" : "1.4.3"},
{ "Variable_name" : "MAXSCALE_THREADS", "Value" : 1},
{ "Variable_name" : "MAXSCALE_NBPOLLS", "Value" : 3},
{ "Variable_name" : "MAXSCALE_POLLSLEEP", "Value" : 1000},
{ "Variable_name" : "MAXSCALE_UPTIME", "Value" : 7158},
{ "Variable_name" : "MAXSCALE_SESSIONS", "Value" : 4}]

Javascript's NULL is case sensitive, so this should be null instead.



 Comments   
Comment by markus makela [ 2016-05-27 ]

NULL values are now properly formatted as null.

Generated at Thu Feb 08 04:01:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.