Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1993

Invalid position setting in the GridFSSeekableDownloadStream with SeekOrigin.End

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical - P2
    • Resolution: Fixed
    • 2.4.3
    • 2.4.4
    • GridFS
    • None

    Description

      Invalid position setting in the GridFSSeekableDownloadStream
      https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver.GridFS/GridFSSeekableDownloadStream.cs#L128

      Should be:
      case SeekOrigin.End: newPosition = FileInfo.Length + offset; break;

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            ExM Anatoliy Koperin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: