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

Prevent $merge from outputting to system collections

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Aggregation Framework
    • None
    • Minor Change
    • Query 2019-10-21, Query 2019-11-04

    Description

      $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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: