[DRIVERS-2067] GridFS spec says length should be int64, but tests use JSON number Created: 13/Jul/19  Updated: 31/Mar/22

Status: Backlog
Project: Drivers
Component/s: GridFS
Fix Version/s: None

Type: Spec Change Priority: Major - P3
Reporter: Bernie Hackett Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to PYTHON-1738 Length field of gridfs files collecti... Closed
Driver Changes: Needed

 Description   

From the GridFS 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.

The JSON tests use JSON number, not $numberLong
https://github.com/mongodb/specifications/blob/master/source/gridfs/tests/upload.json#L29

This quote has already caused some confusion. See PYTHON-1738 and GODRIVER-809.

Should SHOULD be changed to MUST with a related change to use $numberLong in the GridFS tests?



 Comments   
Comment by Bernie Hackett [ 13/Jul/19 ]

CC patrick.freed

Generated at Thu Feb 08 08:24:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.