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

API parameter checking

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Repl 2020-07-27

      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.

            Assignee:
            pridhvi.vegesna@mongodb.com Pridhvi Vegesna (Inactive)
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: