gridfs chunk values serialized to wrong type

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 2.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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.

            Assignee:
            Abraham Egnor
            Reporter:
            Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: