[CDRIVER-1692] mongoc_collection_find_with_opts() conflict with projection operators Created: 11/Oct/16  Updated: 09/Jan/17  Resolved: 12/Oct/16

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

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

Issue Links:
Related
is related to CDRIVER-1975 Mixed $ and non-$ query operators sho... Closed

 Description   

_mongoc_cursor_new_with_opts() validates options with (BSON_VALIDATE_DOLLAR_KEYS | BSON_VALIDATE_EMPTY_KEYS) (see: here), which presents a problem for the $slice projection operator (and possibly others).

This appears to be an issue in 1.5.0-rc1 at least, although that's not available as an "affects version" in JIRA.



 Comments   
Comment by Githook User [ 12/Oct/16 ]

Author:

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

Message: CDRIVER-1692 allow $-ops inside filter/projection
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/971af90ac2883690090f21ebd468904fdeae7b69

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