[CDRIVER-1487] GridFS FindOne weak spec Created: 23/Aug/16  Updated: 20/Feb/18  Resolved: 20/Feb/18

Status: Closed
Project: C Driver
Component/s: docs, GridFS
Affects Version/s: 1.4.0
Fix Version/s: 1.10.0

Type: Improvement Priority: Major - P3
Reporter: Lucas Morales Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.



 Comments   
Comment by Githook User [ 20/Feb/18 ]

Author:

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

Message: CDRIVER-1487 correct GridFS find_one docs
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/f15c4aa992a39cbfb822a1bd4be6b3330bc209e0

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