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

Validate array keys in BSON documents

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-platform Backlog - Platform Team
              Reporter:
              jeff.yemin Jeffrey Yemin
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated: