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

Does bson_json_reader_new's allow_multiple have an effect?

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: json, libbson

      Investigate what allow_multiple is supposed to mean and whether it has an effect. Test and document the reality. This about parsing a buffer like:

      {"a": 1}{"a": 1}{"a": 1}
      

      Read the YAJL documentation to see what it's supposed to mean.

      Could be that our error-handling code recovers when allow_multiple is false but we detect multiple docs, causing libbson to act as if allow_multiple is always true.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: