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

Prevent mapReduce from outputting to system collections

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0
    • Affects Version/s: None
    • Component/s: MapReduce
    • Labels:
      None
    • Query
    • Fully Compatible

      In some manual tests it seemed like it was not possible to output to "system.views" since we prevent renaming to/from that collection. However I was able to output to "system.js" and there's no enforcement that the schema matches (see also SERVER-39122).

      This doesn't really sound like a "feature" and I think should be disallowed. $out does not allow outputting to system collections.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: