Corrupting Files with SFTP on Linux
|Reported by:||terrychamilton||Owned by:|
|Keywords:||Cc:||terrychamilton, Tim Kosse, marguskohv, Alexander Schuch|
|Component version:||Operating system type:|
|Operating system version:|
When I send a number of files over SFTP some of the
files will end up getting their names mixed up.
Queue up 10 files IMAGE001.gif to IMAGE010.gif
001 is 1kb
002 is 2kb
010 is 10kb
After the batch is done the receiver has the files as:
001 is 2kb (001 is really 002 but mis-named)
002 is 1kb (it's really 001)
009 is 10kb (it's really 010)
010 is 9kb (it's really 009)
It happens to any files, binary or text (GIF, PHP,
HTML, PDF, etc.). So far there has been no actual
corruption of the files, just the switching of filenames.
Randomly positioned in the upload order, not always the
first or last files.
The files switched are always sequencial in the list of
files (alphabetical) and it always happens in pairs.
It seems pretty random. Sometimes it will be 50% or
more of the files other times it will be 2 out of 30.
Uploading/Downloading from Windows to Redhat SFTP.
Happens across multiple hosts (and hosting services).
It happens both ways, getting and sending files.
Not related to the file names as simply re-sending the
files works. Next attempt will likely be different
files in the list.