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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0-alpha3
    • None
    • None
    • None
    • Minor Change
    • Repl 2021-02-08

    Description

      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.

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: