[CSHARP-779] IBsonSerializationOptions are not utilized in Builders when serializing to arrays. Created: 17/Jul/13 Updated: 27/Jul/13 Resolved: 22/Jul/13 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.8.1 |
| Fix Version/s: | 1.8.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sam Weaver | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I have a contact in VoucherCloud who are using the C# driver. Their lead developer just emailed me with a problem he is having. Would you be able to provide any feedback? His problem seems to be as follows, with a code example: Hi there Sam, The core of the problem seems to be an inconsistency in the way that bsonrepresentation attributes are handled by enumerate types. Given a guid array which is maker with a bsonrepresentation of string the update.pullall and the query.eq fail to represent the entries in the array (or enumerable) as strings. In addition this occurred for types other than guid and on numerous other queries and updates which accept enumerable entries. I suspect that it may be more prolific than these specific examples but they are at least a repeatable representation of the issue:
Written with NUnit. Hope it helps. |
| Comments |
| Comment by auto [ 22/Jul/13 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Sam Weaver [ 17/Jul/13 ] |
|
Thanks - passed on info. Consider resolved. |
| Comment by Craig Wilson [ 17/Jul/13 ] |
|
Yes, this is definitely a bug. I have fixed this in a branch and it should get pushed with our next release. |