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

Inserts and updates disagree on whether an empty subdocument is a level of nesting

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.10, 5.0.4, 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.0, v4.4
    • Execution Team 2021-09-20

    Description

      Inserts consider an empty subdocument to count as a level of nesting, where as updates do not. This means that if you update a document to have depth equal to the max user BSON depth plus an empty subdocument, that same (valid) document cannot be inserted.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: