-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 8.0.1
-
Component/s: None
-
None
-
Storage Execution
-
ALL
-
MongoDB server silently accepts importing of malformed documents like {{
{"_id":\{"$oid":"63401fc4859babfd692de2da"},"a":{"b":"a"},"a":{}}}} which has a duplicate definition of a.b.
After importing such a document, the database is in an inconsistent state in which queries can behave in unexpected ways. For example, after import of this document, if you query for documents that have a.b, the document will show up in the result, but the returned document does not have that key.
MongoDB should reject import of such documents.
- is related to
-
SERVER-6439 Duplicate fields at the same level should not be allowed
- Backlog