[GODRIVER-654] GridFS bindings give int64 but package trys to receive them as int32 from bson Created: 26/Nov/18  Updated: 28/Oct/23  Resolved: 28/Nov/18

Status: Closed
Project: Go Driver
Component/s: GridFS
Affects Version/s: 0.0.18
Fix Version/s: 0.1.0

Type: Bug Priority: Critical - P2
Reporter: Jonathan Pavlik Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04, Arch, Windows 10



 Description   

Call of bsoncore.Value.int32 on a 64 bit interger

https://github.com/mongodb/mongo-go-driver/blob/master/mongo/gridfs/bucket.go#L339

https://github.com/mongodb/mongo-go-driver/blob/master/mongo/gridfs/download_stream.go#L41

 



 Comments   
Comment by Githook User [ 28/Nov/18 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: Parse file length as int64 in gridfs and update tests to use DownloadToStream.

GODRIVER-654

Change-Id: Id79b0074ada75183f99917385552bf24243116c3
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/cc449c92d8dfb6142ec81dce604e2b78356b3a8c

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