[SERVER-7101] Commands should error on missing/invalid parameters Created: 21/Sep/12  Updated: 09/Apr/20

Status: Open
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: Needs Further Definition

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Unresolved Votes: 2
Labels: commands, move-sa, validation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-19621 createCollection does not fail on inv... Closed
is duplicated by SERVER-8294 FTS: Misspelled parameter does not gi... Closed
Related
is related to SERVER-13572 Push element in any position of array... Closed
is related to SERVER-17234 geoNear command should return error f... Closed
is related to SERVER-4269 report bad options sent to a command Closed
Backwards Compatibility: Major Change
Operating System: ALL
Participants:

 Description   

Errors should be returned for commands for the following conditions:

  • Missing (required) parameters (fields in bson docs)
  • Extra parameters not expected
  • Invalid types of the parameters

The Command interface can be changed to enumerate the parameters expected, their types and if they are required.



 Comments   
Comment by Simon R [ 18/Aug/15 ]

What does fix version "needs further definition mean"?

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