[CSHARP-1919] Filter builder Where method with nullable Enum value doesn't render correctly Created: 13/Feb/17 Updated: 01/May/17 Resolved: 14/Feb/17 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | API, Linq |
| Affects Version/s: | 2.4.2 |
| Fix Version/s: | 2.4.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||
| Description |
|
When a non-nullable enum field is compared to a nullable value the filter does not render correctly. To reproduce use these types:
And this code:
The filter renders as:
but should have rendered as:
because the underlying field serializer uses String representation. |
| Comments |
| Comment by Matthew O'Connell [ 16/Feb/17 ] |
|
Thanks for the fix. Please see also very similar issue with the same driver version - |
| Comment by Githook User [ 15/Feb/17 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Githook User [ 14/Feb/17 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}Message: |
| Comment by Robert Stam [ 13/Feb/17 ] |
|
When this fix is implemented we need to verify that the more complex scenario reported by moc777 in a comment to I believe that scenario involves the same underlying cause. |