[CDRIVER-2664] Raise client error if arrayFilters option is used when unsupported Created: 24/May/18  Updated: 28/Oct/23  Resolved: 21/Jun/18

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.9.0
Fix Version/s: 1.11.0

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

Issue Links:
Depends
is depended on by PHPC-1196 Raise client error if arrayFilters op... Closed
Related
related to CDRIVER-2992 Bulk write arrayFilters option should... Closed
related to CDRIVER-3477 _mongoc_bulk_operation_update_append ... Closed
related to CDRIVER-3478 Rely on _mongoc_write_command_execute... Backlog
is related to CDRIVER-2661 mongoc_bulk_update functions reject a... Closed
is related to CDRIVER-2205 Array Update Improvements Closed

 Description   

Quoting the CRUD spec on arrayFilters:

This option is sent only if the caller explicitly provides a value. The default is to not send a value. For servers < 3.6, the driver MUST raise an error if the caller explicitly provides a value. For unacknowledged writes using opcodes, the driver MUST raise an error if the caller explicitly provides a value.

It doesn't appear that libmongoc checks the wire version when arrayFilters is used. This may need treatment similar to what is done for collation, which is tracked when used for any individual write or one or more operations within command executed as part of a bulk write.



 Comments   
Comment by Githook User [ 21/Jun/18 ]

Author:

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

Message: CDRIVER-2664 fix writeConcern handling for update
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/81f7d65420f2959d7b520f758f6b8ea751c09ea4

Comment by Githook User [ 21/Jun/18 ]

Author:

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

Message: CDRIVER-2664 prohibit arrayFilters w/ old MongoDB
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/c4af4aaec49957918fe7e5b3cc27e91875cca7bf

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