[GODRIVER-886] Panic when passing non-ObjectID file ID to bucket.OpenDownloadStream Created: 18/Mar/19  Updated: 28/Oct/23  Resolved: 19/Mar/19

Status: Closed
Project: Go Driver
Component/s: GridFS
Affects Version/s: 1.0.0
Fix Version/s: 1.0.1

Type: Bug Priority: Major - P3
Reporter: Patrick Freed Assignee: Patrick Freed
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
backported by GODRIVER-958 Backport "Panic when passing non-Obje... Closed

 Description   

Due to the hard cast at bucket.go:354, the driver will panic if a non-ObjectId is passed in for the fileID when calling bucket.OpenDownloadStream. Removing the cast seems to resolve the issue.



 Comments   
Comment by Githook User [ 19/Mar/19 ]

Author:

{'email': 'patrick.freed@mongodb.com', 'name': 'Patrick Freed', 'username': 'patrickfreed'}

Message: GODRIVER-886 Fix panic when using non-ObjectID fileID in bucket.OpenDownloadStream
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/93a85d75724295aeef4f40ae9471212eef2e8bb4

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