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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.0.1
    • Affects Version/s: 1.0.0
    • Component/s: GridFS
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: