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

Raise client error if arrayFilters option is used when unsupported

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.11.0
    • 1.9.0
    • libmongoc
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: