Details
-
Bug
-
Status: Closed
-
Critical - P2
-
Resolution: Duplicate
-
3.0.4
-
None
-
None
-
ALL
Description
When passing invalid keys and values to the second argument of createCollection it fails to return with an error stating incorrect options have been passed to function. See this example code which returns and
{"ok": 1}response.
db.createCollection('example',
{invalidKey: ''invalidValue"})
Attachments
Issue Links
- duplicates
-
SERVER-7101 Commands should error on missing/invalid parameters
-
- Open
-