Invalid position setting in the GridFSSeekableDownloadStream with SeekOrigin.End

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • 2.4.4
    • Affects Version/s: 2.4.3
    • Component/s: GridFS
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Stam
              Reporter:
              Anatoliy Koperin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: