[CDRIVER-1433] Executing invalid mongoc_bulk_operation_t does not initialize reply bson_t Created: 29/Jul/16  Updated: 19/Oct/16  Resolved: 29/Jul/16

Status: Closed
Project: C Driver
Component/s: Bulk API
Affects Version/s: None
Fix Version/s: 1.5.0

Type: Bug Priority: Trivial - P5
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Bulk ops are usually created with mongoc_collection_create_bulk_operation and the bulk's 's client, database, and collection fields are set automatically. But if the bulk op is created with mongoc_bulk_operation_new, these fields must be set explicitly.

If a bulk operation with a NULL client, database, or collection is executed it fails, but it should still initialize "reply" before returning false. Currently it does not initialize "reply" until it has checked these three fields.



 Comments   
Comment by Githook User [ 29/Jul/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1433 test that bulk op always inits "reply"
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/42cb0e6e82fa326cb22c49cc4bbcb977be3882f0

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