[SERVER-67649] Teach IDL to accept generic reply fields when parsing a reply Created: 29/Jun/22  Updated: 29/Oct/23  Resolved: 28/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: George Wangensteen Assignee: George Wangensteen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-68415 Make 'ok' a generic command response ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-07-11, Service Arch 2022-07-25, Service Arch 2022-08-08
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 28/Jul/22 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-67649 Teach IDL reply types to ignore generic fields
Branch: master
https://github.com/mongodb/mongo/commit/0ee599ffdf49064e2d29368810d7ee9eb9eee6a3

Generated at Thu Feb 08 06:08:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.