[CDRIVER-3164] Accept NULL as filter options in mongoc_gridfs_bucket_find() Created: 02/Jun/19  Updated: 28/Oct/23  Resolved: 12/Jul/21

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.14.0
Fix Version/s: 1.18.0

Type: Improvement Priority: Minor - P4
Reporter: Felipe Noronha Tavares Assignee: Colby Pike
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

N/A


Issue Links:
Related
related to CDRIVER-4049 mongoc_gridfs_bucket_find does not fo... Closed
Backwards Compatibility: Fully Compatible

 Description   

Currently, mongoc_gridfs_bucket_find() does not accept NULL in the `opts` argument.
I would suggest to accept NULL, since all other find functions accept NULL as `opts`.



 Comments   
Comment by Githook User [ 13/Jul/21 ]

Author:

{'name': 'vector-of-bool', 'email': 'vectorofbool@gmail.com', 'username': 'vector-of-bool'}

Message: CDRIVER-3164 & CDRIVER-4049: Fix 'opts' usage in mongoc_gridfs_bucket_find (#812)

  • Fix: mongoc_gridfs_bucket_find not respecting 'opts'

Fix: CDRIVER-3164 and CDRIVER-4049

GridFSBucket.find must forward the 'opts' to the underlying
collection query. Also permit 'opts' to be NULL.

Comment by Githook User [ 12/Jul/21 ]

Author:

{'name': 'vector-of-bool', 'email': 'vectorofbool@gmail.com', 'username': 'vector-of-bool'}

Message: CDRIVER-3164 & CDRIVER-4049: Fix 'opts' usage in mongoc_gridfs_bucket_find (#812)

  • Fix: mongoc_gridfs_bucket_find not respecting 'opts'

Fix: CDRIVER-3164 and CDRIVER-4049

GridFSBucket.find must forward the 'opts' to the underlying
collection query. Also permit 'opts' to be NULL.

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