-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.0.0, 4.2.0, 4.4.0, 5.0.0, 6.0.0, 6.3.0-rc3
-
Component/s: Write Ops
-
Query Optimization
-
Minor Change
-
ALL
-
v7.0, v6.3, v6.0, v5.0, v4.4, v4.2
-
QO 2023-05-15, QO 2023-05-29
The update subsystem lacks the equivalent of all of these lines from fixDocumentForInsert() to check the document doesn't have multiple _id fields when inserted by an update sent with upsert=true.
- is related to
-
SERVER-4830 Reject upsert if would create duplicate field names
- Closed
-
SERVER-19361 Insert of document with duplicate _id fields should be forbidden
- Closed
- related to
-
SERVER-77858 Collection validation and dbCheck should error if document has an invalid _id
- Open
-
SERVER-78093 Investigate and add test cases to validate query behavior in the presence of duplicate fields
- Backlog