[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: |
|
||||||||
| 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: |