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

API parameter checking

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • None
    • Repl 2020-07-27

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: