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

Prevent $merge from outputting to system collections

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Minor Change
    • Query 2019-10-21, Query 2019-11-04

      $out has a check to disallow writing to system collections which I think should be added to $merge.

      Also to consider, I don't know of any restrictions on which database you can write to. We may wish to disallow writing to "admin", "config", and "local" as well.

      If we don't change anything, we need more tests at the very least.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: