Prevent $merge from outputting to system collections

XMLWordPrintableJSON

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

      $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
              Reporter:
              Charlie Swanson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: