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

ObjectWrapper::toBSON() may omit _id field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.9
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Service Arch 2019-03-11
    • 21

      We incorrectly checked for _id with alreadyHasOwnField, instead of hasOwnField, which caused us to miss _id fields set from c++.

      This changes how we do that check, and adds object wrapper methods for both types of access

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: