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

Hello command should allow unknown fields

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: IDL
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Repl 2021-04-05

      Description

      SERVER-53150 changed hello/isMaster to not accept unknown parameters because all commands in API V1 are required to have 'strict: true' in IDL. However, we sometimes want drivers to advertise support for new features that old versions of the server don't know about via parameters in the hello/isMaster command. If we keep 'strict: true' with these commands, then older versions of the servers will fail to parse future requests since they don't recognize all of the parameters.

      Since this ability to determine feature support has been useful in the past, it's worth preserving it. One way to do this would be to stop requiring that all commands in API V1 have 'strict: true' and change hello/isMaster to specify 'strict: false' in IDL.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              huayu.ouyang Huayu Ouyang
              Reporter:
              samy.lanka Samyukta Lanka
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: