[SERVER-76934] Update computeDiff() code should safely error when there are duplicate fields in the objects Created: 09/May/23  Updated: 29/Oct/23  Resolved: 22/Jun/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.0.0-rc0, 6.0.6, 5.0.17
Fix Version/s: 7.1.0-rc0, 5.0.19, 7.0.0-rc7, 6.0.9

Type: Bug Priority: Major - P3
Reporter: Arun Banala Assignee: Kevin Cherkauer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.0, v5.0
Sprint: QE 2023-06-26
Participants:

 Description   

When the user documents have duplicate fields there are cases where the diff might also end up with duplicate fields



 Comments   
Comment by Githook User [ 29/Jun/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-76934 Change addChild() invariant to uassert if adding dup field

(cherry picked from commit 5f53c7ab52d031df1e14b3a9b7787d517f9c8ff4)
Branch: v6.0
https://github.com/mongodb/mongo/commit/39c046b8cd3cf56ad6e037d2f7fef2c8fe6736dc

Comment by Githook User [ 29/Jun/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-76934 Change addChild() invariant to uassert if adding dup field

(cherry picked from commit 5f53c7ab52d031df1e14b3a9b7787d517f9c8ff4)
Branch: v5.0
https://github.com/mongodb/mongo/commit/98f6ea511c8f97728931ae76bcdb1962322dbd7e

Comment by Githook User [ 28/Jun/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-76934 Change addChild() invariant to uassert if adding dup field
Branch: v7.0
https://github.com/mongodb/mongo/commit/b2eebf99da0a11a0916b35193a46a8e899ffed32

Comment by Githook User [ 22/Jun/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-76934 Change addChild() invariant to uassert if adding dup field
Branch: master
https://github.com/mongodb/mongo/commit/5f53c7ab52d031df1e14b3a9b7787d517f9c8ff4

Generated at Thu Feb 08 06:34:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.