[SERVER-30441] Commands with sequences parsed through IDL cannot be serialized Created: 31/Jul/17  Updated: 30/Oct/23  Resolved: 01/Aug/17

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: 3.5.10
Fix Version/s: 3.5.11

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Construct an opMsg with sequence (as opposed to the corresponding BSON field)
Parse the opMsg into an IDL generated object
Call serialize on the parsed object

Sprint: Sharding 2017-08-21
Participants:

 Description   

If a command which contains sequences is parsed through IDL, the corresponding _hasField value is not set. Because of this, trying to serialize the same command back to BSON will invariant that there are missing fields.



 Comments   
Comment by Githook User [ 01/Aug/17 ]

Author:

{'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm', 'name': 'Kaloian Manassiev'}

Message: SERVER-30441 Correctly set the _hasField value when deserializing from OpMsgRequest
Branch: master
https://github.com/mongodb/mongo/commit/e30faa0f9bf498680b981bbbd36c6307134bf49e

Generated at Thu Feb 08 04:23:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.