Teach IDL to accept generic reply fields when parsing a reply

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service Arch 2022-07-11, Service Arch 2022-07-25, Service Arch 2022-08-08
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Some fields can appear in the BSON in the response to any command, such as "ok". We even document a subset of them here: https://github.com/mongodb/mongo/blob/87d6ec40779e3750a123efd941e16d159bf938bb/src/mongo/idl/generic_argument.idl#L108. However, the parser from BSON to c++-representation of the reply object generated by IDL throws an error when it encounters these fields. We should teach the parser to allow for generic reply fields to be present when parsing.

            Assignee:
            George Wangensteen (Inactive)
            Reporter:
            George Wangensteen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: