[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:
Depends
depends on SERVER-48864 New error codes for Versioned API Closed
Duplicate
duplicates SERVER-48866 Parse Versioned API parameters Closed
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 SERVER-48866 to test that the server enforces these rules.


Generated at Thu Feb 08 05:18:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.