[SERVER-29956] Chained structs inside a command produce non-compilable code Created: 03/Jul/17  Updated: 30/Oct/23  Resolved: 05/Jul/17

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

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Mark Benvenuto
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:

Add the following command to mongo/idl/unittest.idl:

    DocSequenceCommandWithChaining:
        description: UnitTest for a basic command with fields marked with supports_doc_sequence which
                     also uses struct chaining
        namespace: concatenate_with_db
        chained_structs:
            chained_string_basic_type:
                cpp_name: ChainedStringBasicType
        fields:
            field1: int
            field2: string
            structs:
                type: array<one_string>
                supports_doc_sequence: true
            objects:
                type: array<object>
                supports_doc_sequence: true

Sprint: Platforms 2017-07-10
Participants:

 Description   

Using a chained struct inside a command generates a reference to variable called bsonObject, which does not exist because the input to the command's parse method is OpMsgRequest.



 Comments   
Comment by Githook User [ 05/Jul/17 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-29956 Chained structs inside a command produce non-compilable code
Branch: master
https://github.com/mongodb/mongo/commit/2f30acc9db10215601ca1a13498be468450736c2

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