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

Undefined is allowed for required fields in IDL

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.3
    • None
    • IDL
    • None
    • Fully Compatible
    • ALL
    • Security 2018-09-10
    • 41

    Description

      Parsing OplogEntry with Undefined "o" field is accepted, but serialization of OplogEntry crashes on that. ReplOperation parsing and serialization don't crash but return an empty Object for the "o" field. Unit test patch is attached. Running ./build/ninja/mongo/db/repl/oplog_test --suite OplogParsing after compile will reproduce the issue.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: