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

Invalid position setting in the GridFSSeekableDownloadStream with SeekOrigin.End

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.4.4
    • Affects Version/s: 2.4.3
    • Component/s: GridFS
    • None

      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;

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

              Created:
              Updated:
              Resolved: