[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: |
|
||||||||
| 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: |