[SERVER-19621] createCollection does not fail on invalid arguments Created: 28/Jul/15  Updated: 28/Jul/15  Resolved: 28/Jul/15

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell
Affects Version/s: 3.0.4
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Simon R Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-7101 Commands should error on missing/inva... Open
Operating System: ALL
Participants:

 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"}

)



 Comments   
Comment by J Rassi [ 28/Jul/15 ]

Hi,

I'm closing this ticket as a duplicate of SERVER-7101. Feel free to add yourself as a watcher to that ticket for updates on the progress of this issue.

~ Jason Rassi

Generated at Thu Feb 08 03:51:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.