|
That absolutely shouldn't be happening.
Can you provide a little more information on how exactly you're using libmongoc and libbson to pull bson over the network? I suspect that what you're actually seeing is corruption, rather than libbson being broken with arrays. You can check that out by:
- calling bson_validate() on the bson document that appears to have truncated arrays. If that returns false, you'll know you've got corruption.
- writing the bson bytes to a file and attaching it to this ticket. You can access the raw bytes with bson_get_data() and the length with bson->len. Once I can see what you're actually working with I can make a fix if one's needed.
Regards,
Jason
|