Undefined is allowed for required fields in IDL

XMLWordPrintableJSON

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

      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.

        1. parsing.patch
          1 kB
          Siyuan Zhou

            Assignee:
            Mark Benvenuto
            Reporter:
            Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: