[SERVER-39521] ObjectWrapper::toBSON() may omit _id field Created: 11/Feb/19 Updated: 29/Oct/23 Resolved: 26/Feb/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.9 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Justin Seyster | Assignee: | Mira Carey |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | afz | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | Service Arch 2019-03-11 | ||||
| Participants: | |||||
| Linked BF Score: | 21 | ||||
| Description |
|
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 |
| Comments |
| Comment by Githook User [ 26/Feb/19 ] |
|
Author: {'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}Message: We incorrectly checked for _id with alreadyHasOwnField, instead of |