[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: |
|
||||||||
| 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 |