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

Investigate whether BSON depth validation logic can be consolidated

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Execution Team 2021-11-01

      Currently we have two separate implementations to validate the depth of a BSON object: one used by inserts and one used by updates. This can lead to discrepancies like the one described in SERVER-58777. Thus it may be valuable to determine whether it would be possible to consolidate these two implementations into one.

      However, this may not be possible due to performance reasons. In particular, the update path uses mutablebson to do the traversal whereas the insert path does not..

            Assignee:
            gregory.noma@mongodb.com Gregory Noma
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: