Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1433

Executing invalid mongoc_bulk_operation_t does not initialize reply bson_t

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 1.5.0
    • None
    • Bulk API
    • None

    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.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: