[SERVER-48870] API parameter checking Created: 15/Jun/20 Updated: 08/Jul/20 Resolved: 08/Jul/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | Pridhvi Vegesna (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Sprint: | Repl 2020-07-27 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
If the client passed apiVersion, and its value is not a string, reply with an error. If the client passed apiVersion, and its value is not "1", reply with APIVersionError. (Hardcode "1" for now. Revisit this code when we support "2".) If the client passed apiStrict and it is not a boolean, reply with an error. Same for apiDeprecationErrors. Update the JSTest that we started in |