-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
EDIT: Upon further reading, this is actually also a bug in the Go driver, as per the spec:
Note: drivers SHOULD store length as Int64 and chunkSize as Int32 when creating new GridFS files. However, drivers MUST be able to handle existing GridFS files where the length and chunkSize fields might have been stored using a different numeric data type.
In pymongo gridfs, the files collection documents are stored with length as an int32(at least when the length is small), but the gridfs spec defines the schema such that this this field should be an int64.
This type mismatch can cause problems when reading gridfs files that were inserted by pymongo in a driver written in a statically typed language.
e.g. the go driver crashes when trying to decode the length field.
- causes
-
GODRIVER-809 Go driver cannot decode gridfs files collection documents if the length field is not stored as int64
- Closed
- is related to
-
DRIVERS-2067 GridFS spec says length should be int64, but tests use JSON number
- Backlog