Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-355

RamFileProvider: ReadingRamFileRandomAccessContent InputStream of file does not return -1 when empty...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 2.1
    • None
    • N/A

    Description

      RamFileRandomAccessContent

      public int read(byte b[], int off, int len) throws IOException

      { int retLen = Math.min(len, getLeftBytes()); RamFileRandomAccessContent.this.readFully(b, off, retLen); return retLen; }

      Notice retLen should return 1 if getLeftBytes() returns 0 but it doesnt. When empty it simply returns 0 which means if one reads until -1 it never happens...

      Attachments

        Activity

          People

            Unassigned Unassigned
            mp1 Miroslav Pokorny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: