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

mongoc_collection_find_with_opts() should return error if collation specified and connection does not support read commands

    • 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_with_opts() should return an error to the user if a collation is specified and the server does not support read commands. Currently, no error is returned to the user, and the collation is passed to the server with the invalid query modifier "$collation" (which is ignored by the server). Tested with libmongoc 1.5.0-rc2 against server version 2.6.12.

      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: