[SERVER-11577] Check function's BSON options Created: 05/Nov/13  Updated: 05/Nov/13  Resolved: 05/Nov/13

Status: Closed
Project: Core Server
Component/s: Usability
Affects Version/s: Needs Triage
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Charlie Page 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-769 Validate top-level & index spec field... Closed
Operating System: ALL
Participants:

 Description   

Calls to functions that take options should check those options and error when something unsupported is an option. This can help with typos, for instance "unique" vs "unqiue" on ensureIndex.

Additionally values for options should be checked. For instance with dropDups there is no error when 1 is used instead of true, instead it silently doesn't drop them. If that is a design flaw, then if 2 is used an error should be returned because the output is out of the bounded range (the range [true, false] however they are represented).


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