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

Raise client error if arrayFilters option is used when unsupported

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.11.0
    • Affects Version/s: 1.9.0
    • Component/s: libmongoc
    • None

      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.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: