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

Add ability to disable IDL duplicate field checks for extra fields

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.0
    • Security 2023-04-17, Security 2023-05-01
    • 0

      IDL is used to scan for API version information. IDL was not designed to be used as non-normative scanner for fields. It expects to know all fields and provide guarantees around duplicate fields.

      APIParametersFromClient uses a struct to scan for fields in client payloads. These fields are typically absent and because of the duplicate field check for extra fields, a std::set is built with all the field names. Since the command will be processed later in the pipeline, APIParametersFromClient does not need to do duplicate field detection for extra fields.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: