[CDRIVER-1751] mongoc_collection_find_with_opts() should return error if collation specified and connection does not support read commands Created: 17/Oct/16 Updated: 15/Nov/16 Resolved: 28/Oct/16 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | J Rassi | Assignee: | Hannes Magnusson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
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:
|
| Comments |
| Comment by Githook User [ 01/Nov/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by Githook User [ 28/Oct/16 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |