-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
FilesCollectionDocument.chunk_size_bytes and Chunk.n are both represented in Rust as u32, which makes sense abstractly as neither can be negative. However, this means they're serialized as bson int64 (bson has no unsigned types), which doesn't match the spec which says they should both be int32. Concretely, this means that writing gridfs files with the Rust driver means they can't be read with other drivers, as in https://github.com/mongodb/mongo-rust-driver/issues/938.
- related to
-
RUST-1692 Be consistent about number deserialization
- Backlog