Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2223

JSON reader cannot parse integers for legacy $date syntax

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: json, libbson
    • None

      933fd98 from CDRIVER-2128 removed the JSON reader's ability to parse legacy $date integers. Attempting to parse such dates now emits an error, such as:

      Unexpected integer 1416445411987 in type "datetime"

      We should revert that commit and add some tests for reading legacy values.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: