-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
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.
- causes
-
PYTHON-2023 Test failure - test.test_database.TestDatabaseAggregation.test_database_aggregation_fake_cursor
- Closed
- is related to
-
SERVER-43286 Prevent mapReduce from outputting to system collections
- Closed
- related to
-
SERVER-43020 New mapReduce -> agg path on mongos fails to validate that namespace element is a string
- Closed