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

mongoc_collection_find_and_modify_with_opts() should return error if collation specified and connection max wire version < 5

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • None

      mongoc_collection_find_and_modify_with_opts() should return an error to the user if a collation is specified and the connection max wire version is less than 5. Currently, no error is returned to the user, and the collation is passed through to the server and ignored. Tested with libmongoc 1.5.0-rc2 against server version 3.2.10.

      Relevant excerpt from the collation spec:

      Drivers therefore MUST throw an error if a user specifies a Collation and the selected server has a maxWireVersion < 5 or if using opcode-based unacknowledged writes.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: