Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2067

GridFS spec says length should be int64, but tests use JSON number

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: GridFS
    • None
    • Needed

      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?

            Assignee:
            Unassigned Unassigned
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: