Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1502

Extended JSON parsing mishandles invalid $code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.2
    • Component/s: JSON & ExtJSON
    • Labels:
      None

      Description

      When parsing this document:

      {"":{"$code":"", "0":{}}}
      

      The follow error is received: "invalid JSON input; expected value for javascript". This should error due to an erroneous key next to $code.

      This document fails to error and produces an incorrect document:

      {"":{"$code":"abc", "0":""}}
      0c0000000d00010000000000
      

      Note that "abc" does not appear in the output.
       

        Attachments

          Activity

            People

            Assignee:
            divjot.arora Divjot Arora
            Reporter:
            david.golden David Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: