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

GridFS FindOne weak spec

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: 1.4.0
    • Component/s: docs, GridFS
    • Labels:
      None

      The spec for mongoc_gridfs_find_one is weak in that it is not explicit on when the error is set (i.e. is the error set when the returned pointer is NULL?).

      Meanwhile, mongoc_gridfs_fine_one_by_filename is explicit in that the error is set whenever the returned pointer is NULL.

      In other words, the API spec for mongoc_gridfs_find_one should be strengthened on its post-condition for when the error is set.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            lucas.morales Lucas Morales
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: