Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-886

Panic when passing non-ObjectID file ID to bucket.OpenDownloadStream

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.1
    • Affects Version/s: 1.0.0
    • Component/s: GridFS
    • None

      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.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: