Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-387

FileUtils.copyFile() does not check that all bytes are transferred

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • None
    • 0.5
    • Common
    • None

    Description

      copyFile uses FileChannel.transferTo() which returns the number of bytes
      transferred but does not guarantee that the full contents are transferred in
      one go. There should be a loop around the transferTo(). It is unlikely that
      this has caused
      NOTE: This bug is originally from Bugzilla bug_id=385.

      Attachments

        Activity

          People

            lars lars [X] (Inactive)
            lars lars [X] (Inactive)
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: