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

Collection validation and dbCheck should error if document has an invalid _id

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication

      The update subsystem enforces constraints on the document structure using different C++ code than the insert command. This has led to now-fixed bugs where a document could have had

      Additional validation has been introduced into the update subsystem in an upcoming MongoDB version to prevent further introduction of these malformed documents. It would be useful to provide customers a means to identify and remediate any existing documents. This is because future versions of the server may not react in a well-defined way to these malformed documents. Adding checks on the _id field to both the validate and dbCheck commands would make it possible for customers to sooner learn if they are impacted and address the undesirable behavior in their application.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: