Commit Graph

5 Commits

Author SHA1 Message Date
A. Jesse Jiryu Davis
99fe7a8349 SERVER-55614 getMore accepts API version params 2021-05-07 00:39:31 +00:00
samontea
620cbec256 SERVER-51615 Disallow writes to system.js collection with apiStrict:true 2021-01-05 01:26:52 +00:00
Pierlauro Sciarelli
adb20b92c1 Revert "SERVER-51615 Disallow writes to system.js collection with apiStrict:true"
This reverts commit 11ba9fe9ff.
2020-12-31 10:33:54 +00:00
samontea
11ba9fe9ff SERVER-51615 Disallow writes to system.js collection with apiStrict:true 2020-12-23 18:31:03 +00:00
A. Jesse Jiryu Davis
f4ed96b5a7 SERVER-49858 Don't forward API params from drop/dropDatabase to config servers
There are two mongos commands in API Version 1 that forward their parameters to internal commands: "drop" forwards to "_configsvrDropCollection" and "dropDatabase" forwards to "_configsvrDropDatabase".
Users should be permitted to call the mongos commands with apiVersion: "1", apiStrict: true, but the internal commands aren't in Version 1 and they'll reject these parameters. So, strip the API version parameters when forwarding.
2020-08-13 19:32:49 +00:00