Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30441

Commands with sequences parsed through IDL cannot be serialized

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.11
    • Affects Version/s: 3.5.10
    • Component/s: IDL
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      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

      Show
      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
    • Sharding 2017-08-21

      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.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: