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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.0.1
    • 1.0.0
    • GridFS
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: