Disallow view drop through applyOps command with 'c' entry

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.3.0-rc0
    • Component/s: Catalog
    • None
    • Catalog and Routing
    • CAR Team 2026-02-02
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      We allow dropping a view via a 'c' drop entry like:

      db.adminCommand({applyOps: [{
        op: 'c',
        ns: 'test.$cmd',
        o: {drop: "xyz"}
      }]})

      See drop_collection.cpp.

       

      Like SERVER-112876, the Server never generates a 'c' oplog entry like this when dropping a view (rather a 'd' delete entry into system.views) so we should consider removing this possibility.

            Assignee:
            Joan Bruguera Micó
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: