[SERVER-2378] REST Api Invalid JSON date format Created: 19/Jan/11  Updated: 19/Jan/11  Resolved: 19/Jan/11

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 1.6.5
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ryan Nitz Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

This has been fixed in ToT, but it is in place in 1.6.5.

This is the JSON that is produced from http://localhost:28017/serverStatus

This format causes parse errors:

"localTime" : Date( 1295450071941 )

Invalid JSON: { "version" : "1.6.5-rc1", "uptime" : 133, "uptimeEstimate" : 131, "localTime" : Date( 1295450071941 ), "globalLock" : { "totalTime" : 133097025, "lockTime" : 3884, "ratio" : 2.918171912557775e-05, "currentQueue" :

{ "total" : 0, "readers" : 0, "writers" : 0 }

}, "mem" :

{ "bits" : 64, "resident" : 20, "virtual" : 156, "supported" : true, "mapped" : 80 }

, "connections" :

{ "current" : 0, "available" : 819 }

, "extra_info" :

{ "note" : "fields vary by platform", "heap_usage_bytes" : 234512, "page_faults" : 1 }

, "indexCounters" : { "btree" :

{ "accesses" : 0, "hits" : 0, "misses" : 0, "resets" : 0, "missRatio" : 0 }

}, "backgroundFlushing" :

{ "flushes" : 2, "total_ms" : 0, "average_ms" : 0, "last_ms" : 0, "last_finished" : Date( 1295450058854 ) }

, "cursors" :

{ "totalOpen" : 0, "clientCursors_size" : 0, "timedOut" : 0 }

, "opcounters" :

{ "insert" : 0, "query" : 2, "update" : 0, "delete" : 0, "getmore" : 0, "command" : 5 }

, "asserts" :

{ "regular" : 0, "warning" : 0, "msg" : 0, "user" : 0, "rollovers" : 0 }

}



 Comments   
Comment by Eliot Horowitz (Inactive) [ 19/Jan/11 ]

There are people relying on that, so don't want to change in a minor version change.

Generated at Thu Feb 08 02:59:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.