applyOps command inserts documents without ever calling fixDocumentForInsert()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Replication
    • ALL
    • 15
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The applyOperation_inlock() function calls Collection::insertDocuments() directly. Since the "applyOps" command doesn't call the fixDocumentForInsert() function on its operations of type op='i' as part of its validation, this means (among other things) it is possible to insert documents with $-prefixed fields names, exceed the maximum depth for user storage, or use bad BSON types for the "_id" field.

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: