Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2378

REST Api Invalid JSON date format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 1.6.5
    • Fix Version/s: None
    • Component/s: Tools
    • Labels:
      None
    • Operating System:
      ALL

      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 }

      }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: