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

Validate array keys in BSON documents

      The BSON specification states that

      Array - The document for an array is a normal BSON document with integer values for the keys, starting with 0 and continuing sequentially. For example, the array ['red', 'blue'] would be encoded as the document {'0': 'red', '1': 'blue'}. The keys must be in ascending numerical order

      yet the server does not validate that BSON documents conform to this specification.

      This has caused compatibility issues between drivers, as evidenced by the linked tickets.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: