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

Validate BSON type to be array when parsing BSON object to Array

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0-alpha3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • Repl 2021-02-08

      We allow BSON representation of an Array to be parsed to array without checking the type of the BSON object , ex: *

      {“0” : “hello”, “1” : “world” }

      * is accepted as array<string> => [“hello”, “world”]

      As we adding more strict rules to our inputs/outputs for our command, we will enforce that BSON should be of array type to be parsed as array, to prevent future confusion if we start accepting (Object, array) types for the same field.

       

            Assignee:
            m.maher@mongodb.com Moustafa Maher
            Reporter:
            m.maher@mongodb.com Moustafa Maher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: