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

Undefined is allowed for required fields in IDL

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.3
    • Affects Version/s: None
    • Component/s: IDL
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Security 2018-09-10
    • 41

      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.

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

              Created:
              Updated:
              Resolved: