Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11577

Check function's BSON options

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: Needs Triage
    • Fix Version/s: None
    • Component/s: Usability
    • Labels:
      None
    • Operating System:
      ALL

      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).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              charlie.page@10gen.com Charlie Page
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: