[CDRIVER-443] bulk insert doesn't check bson documents Created: 17/Oct/14  Updated: 19/Oct/16  Resolved: 06/Nov/14

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.0.2
Fix Version/s: 1.1.0

Type: Bug Priority: Major - P3
Reporter: Jerome Lebel Assignee: Anna Herlihy (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

When using mongoc_collection_insert(), the document is checked using bson_validate()

When using a bulk insert, bson_validate() is not used.

So this document can be inserted with a bulk insert, but not with mongoc_collection_insert():
{
"user":

{ "$ref": "User", "$id": "5374d465c43a034f528b45ba", "$db": "db_name" }

}



 Comments   
Comment by Githook User [ 06/Nov/14 ]

Author:

{u'name': u'aherlihy', u'email': u'anna.herlihy@10gen.com'}

Message: CDRIVER-443 added validate to bulk_insert

Closes #113
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/f6c7c1aa72ad8d85156a78aa3a7fc8cecb63a077

Comment by Anna Herlihy (Inactive) [ 05/Nov/14 ]

https://github.com/mongodb/mongo-c-driver/pull/113

Generated at Wed Feb 07 21:09:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.