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

createCollection does not fail on invalid arguments

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 3.0.4
    • Component/s: JavaScript, Shell
    • None
    • ALL

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

      )

            Assignee:
            Unassigned Unassigned
            Reporter:
            simon-p-r Simon R
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: