Details
-
Bug
-
Resolution: Duplicate
-
Minor - P4
-
None
-
None
-
None
-
None
Description
With this input file and mongoimport:
{ "_id" : 1, "_id" : "a" }
|
{ "_id" : 2, "_id" : "b" }
|
{ "_id" : 3, "_id" : "c" }
|
{ "_id" : 4, "_id" : "d" }
|
Produces this in the database:
ongoexport -d test -c dups
|
connected to: 127.0.0.1
|
{ "_id" : 1, "_id" : "a" }
|
{ "_id" : 2, "_id" : "b" }
|
{ "_id" : 3, "_id" : "c" }
|
{ "_id" : 4, "_id" : "d" }
|
Parser should probably catch this, or maybe a unique key contraint on the bson object.
Attachments
Issue Links
- duplicates
-
SERVER-19361 Insert of document with duplicate _id fields should be forbidden
-
- Closed
-
- is related to
-
SERVER-5677 rewrite json parser
-
- Closed
-