Opened 17 years ago

Last modified 10 years ago

#3269 closed Bug report

htm File transfer truncated

Reported by: dennisfp Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: dennisfp, Alexander Schuch, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

FileZilla 3.0.1, XP SP2

When uploading a 96k .htm file called "CITY OF BROOKSVILLE.htm", the file size is about a 1000 bytes smaller than the original when it finishes transferring.

I have tried playing with the Auto/Ascii/Binary settings without success.

FTP Voyager 12 (which I'm trying to dump for FileZilla) does not suffer from this issue.

Also received an unexptected disconnect or two from the ftp server.

*
Status: Resolving IP-Address for ftp.powweb.com
Status: Connecting to 65.254.250.101:21...
Status: Connection established, waiting for welcome message...
Response: 220 Powweb FTP Server ready
Command: USER bookscity
Response: 331 Password required for bookscity.
Command: PASS

Response: 230 User bookscity logged in.
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: REST STREAM
Response: SIZE
Response: 211 End
Status: Connected
Status: Retrieving directory listing...
Command: CWD /htdocs/agenda/
Response: 250 CWD command successful
Command: PWD
Response: 257 "/htdocs/agenda" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PORT 192,168,60,122,4,89
Response: 200 PORT command successful
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Retrieving directory listing...
Command: CWD 10-01-07 Regular Meeting
Response: 250 CWD command successful
Command: PWD
Response: 257 "/htdocs/agenda/10-01-07 Regular Meeting" is current directory.
Command: PORT 192,168,60,122,4,90
Response: 200 PORT command successful
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Resolving IP-Address for ftp.powweb.com
Status: Connecting to 65.254.250.101:21...
Status: Connection established, waiting for welcome message...
Response: 220 Powweb FTP Server ready
Command: USER bookscity
Response: 331 Password required for bookscity.
Command: PASS
Response: 230 User bookscity logged in.
Status: Connected
Status: Starting upload of w:\agenda\10-01-07 Regular Meeting\CITY OF BROOKSVILLE.htm
Command: CWD /htdocs/agenda/10-01-07 Regular Meeting/
Response: 250 CWD command successful
Command: PWD
Response: 257 "/htdocs/agenda/10-01-07 Regular Meeting" is current directory.
Command: TYPE A
Response: 200 Type set to A
Command: PORT 192,168,60,122,4,93
Response: 200 PORT command successful
Command: STOR CITY OF BROOKSVILLE.htm
Response: 150 Opening ASCII mode data connection for CITY OF BROOKSVILLE.htm
Response: 226 Transfer complete.
Status: File transfer successful
Status: Retrieving directory listing...
Command: PORT 192,168,60,122,4,94
Response: 200 PORT command successful
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Retrieving directory listing...
Command: PORT 192,168,60,122,4,95
Response: 200 PORT command successful
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Disconnected from server
Status: Retrieving directory listing...
Command: PORT 192,168,60,122,4,109
Response: 200 PORT command successful
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Retrieving directory listing...
Command: PORT 192,168,60,122,4,110
Response: 200 PORT command successful
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Retrieving directory listing...
Command: PORT 192,168,60,122,4,111
Response: 200 PORT command successful
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Resolving IP-Address for ftp.powweb.com
Status: Connecting to 65.254.250.101:21...
Status: Connection established, waiting for welcome message...
Response: 220 Powweb FTP Server ready
Command: USER bookscity
Response: 331 Password required for bookscity.
Command: PASS

Response: 230 User bookscity logged in.
Status: Connected
Status: Starting upload of w:\agenda\10-01-07 Regular Meeting\CITY OF BROOKSVILLE.htm
Command: CWD /htdocs/agenda/10-01-07 Regular Meeting/
Response: 250 CWD command successful
Command: PWD
Response: 257 "/htdocs/agenda/10-01-07 Regular Meeting" is current directory.
Command: TYPE A
Response: 200 Type set to A
Command: PORT 192,168,60,122,4,118
Response: 200 PORT command successful
Command: STOR CITY OF BROOKSVILLE.htm
Response: 150 Opening ASCII mode data connection for CITY OF BROOKSVILLE.htm
Response: 226 Transfer complete.
Status: File transfer successful
Status: Retrieving directory listing...
Command: PORT 192,168,60,122,4,119
Response: 200 PORT command successful
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Disconnected from server
Status: Disconnected from server
Trace: CFtpControlSocket::ResetOperation(66)
Trace: CControlSocket::ResetOperation(66)
Status: Resolving IP-Address for ftp.powweb.com
Trace: ControlSocket.cpp(948): CRealControlSocket::ContinueConnect(0126A9B0) m_pEngine=010DA1A0 caller=01271670
Status: Connecting to 65.254.250.101:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 Powweb FTP Server ready
Command: USER bookscity
Trace: CFtpControlSocket::OnReceive()
Response: 331 Password required for bookscity.
Command: PASS
Trace: CFtpControlSocket::OnReceive()
Response: 230 User bookscity logged in.
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: Resolving IP-Address for ftp.powweb.com
Trace: ControlSocket.cpp(948): CRealControlSocket::ContinueConnect(012681E0) m_pEngine=0123CE10 caller=0127B068
Status: Connecting to 65.254.250.101:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 Powweb FTP Server ready
Command: USER bookscity
Trace: CFtpControlSocket::OnReceive()
Response: 331 Password required for bookscity.
Command: PASS

Trace: CFtpControlSocket::OnReceive()
Response: 230 User bookscity logged in.
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::FileTransfer()
Status: Starting upload of w:\agenda\10-01-07 Regular Meeting\CITY OF BROOKSVILLE.htm
Trace: CFtpControlSocket::SendNextCommand(0)
Command: CWD /htdocs/agenda/10-01-07 Regular Meeting/
Trace: CFtpControlSocket::OnReceive()
Response: 250 CWD command successful
Command: PWD
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/htdocs/agenda/10-01-07 Regular Meeting" is current directory.
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: FileTransferSend()
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: FileTransferSend()
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: CFtpControlSocket::TransferSend(0)
Command: TYPE A
Trace: CFtpControlSocket::OnReceive()
Response: 200 Type set to A
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: PORT 192,168,60,122,4,239
Trace: CFtpControlSocket::OnReceive()
Response: 200 PORT command successful
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: STOR CITY OF BROOKSVILLE.htm
Trace: CFtpControlSocket::OnReceive()
Response: 150 Opening ASCII mode data connection for CITY OF BROOKSVILLE.htm
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Trace: CTransferSocket::OnConnect
Trace: CTransferSocket::TransferEnd(1)
Trace: CFtpControlSocket::TransferEnd()
Trace: CFtpControlSocket::OnReceive()
Response: 226 Transfer complete.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: FileTransferSend()
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: File transfer successful
Status: Disconnected from server
Trace: CFtpControlSocket::ResetOperation(66)
Trace: CControlSocket::ResetOperation(66)
Status: Resolving IP-Address for ftp.powweb.com
Trace: CFtpControlSocket::OnReceive()
Response: 421 No Transfer Timeout (300 seconds): closing control connection.
Trace: Unexpected reply, no reply was pending.
Trace: ControlSocket.cpp(948): CRealControlSocket::ContinueConnect(0126AC30) m_pEngine=0123CE10 caller=0127B068
Status: Connecting to 65.254.250.101:21...
Status: Connection established, waiting for welcome message...
Trace: CFtpControlSocket::OnReceive()
Response: 220 Powweb FTP Server ready
Command: USER bookscity
Trace: CFtpControlSocket::OnReceive()
Response: 331 Password required for bookscity.
Command: PASS
Trace: CFtpControlSocket::OnReceive()
Response: 230 User bookscity logged in.
Status: Connected
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::FileTransfer()
Status: Starting upload of w:\agenda\10-01-07 Regular Meeting\CITY OF BROOKSVILLE.htm
Trace: CFtpControlSocket::SendNextCommand(0)
Command: CWD /htdocs/agenda/10-01-07 Regular Meeting/
Trace: CFtpControlSocket::OnReceive()
Response: 250 CWD command successful
Command: PWD
Trace: CFtpControlSocket::OnReceive()
Response: 257 "/htdocs/agenda/10-01-07 Regular Meeting" is current directory.
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: FileTransferSend()
Status: Retrieving directory listing...
Trace: ftpcontrolsocket.cpp(852): List called from other command caller=0127B068
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: CFtpControlSocket::TransferSend(0)
Command: TYPE I
Trace: CFtpControlSocket::OnReceive()
Response: 200 Type set to I
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: PORT 192,168,60,122,4,249
Trace: CFtpControlSocket::OnReceive()
Response: 200 PORT command successful
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: LIST
Trace: CRealControlSocket::OnClose()
Error: Disconnected from server
Trace: CFtpControlSocket::ResetOperation(66)
Trace: CControlSocket::ResetOperation(66)
Trace: CTransferSocket::OnConnect
Trace: CFtpControlSocket::OnReceive()
Response: 150 Opening ASCII mode data connection for file list
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Trace: CTransferSocket::OnClose
Trace: CTransferSocket::TransferEnd(1)
Trace: CFtpControlSocket::TransferEnd()
Trace: CFtpControlSocket::OnReceive()
Response: 226 Transfer complete.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: CFtpControlSocket::ListSend(0)
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: FileTransferSend()
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: FileTransferSend()
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: CFtpControlSocket::TransferSend(0)
Command: TYPE A
Trace: CFtpControlSocket::OnReceive()
Response: 200 Type set to A
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: PORT 192,168,60,122,4,250
Trace: CFtpControlSocket::OnReceive()
Response: 200 PORT command successful
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Command: STOR CITY OF BROOKSVILLE.htm
Trace: CFtpControlSocket::OnReceive()
Response: 150 Opening ASCII mode data connection for CITY OF BROOKSVILLE.htm
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::TransferSend(0)
Trace: CTransferSocket::OnConnect
Trace: CTransferSocket::TransferEnd(1)
Trace: CFtpControlSocket::TransferEnd()
Trace: CFtpControlSocket::OnReceive()
Response: 226 Transfer complete.
Trace: CFtpControlSocket::TransferParseResponse()
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Trace: CFtpControlSocket::SendNextCommand(0)
Trace: FileTransferSend()
Trace: CFtpControlSocket::ResetOperation(0)
Trace: CControlSocket::ResetOperation(0)
Status: File transfer successful
Status: Disconnected from server
Trace: CFtpControlSocket::ResetOperation(66)
Trace: CControlSocket::ResetOperation(66)
*

Change History (3)

comment:1 by Alexander Schuch, 17 years ago

Command: PORT 192,168,60,122,4,89

You should configure FileZilla to use passive mode as it reports your internal IPv4 address to the server. The configuration wizard can help you to check if your connection settings are correctly working.

Can you download the uploaded file again and do a "diff" between the original file and the downloaded file to check for the differences? Does the file have about 1000 lines, or is the end missing, or the beginning?

You can only expect the exact same size when using binary mode.

comment:2 by dennisfp, 17 years ago

Thanks for quick response. Noticed something weird. When I download the smaller file again, it reverts back to original size! I don't know if it's a dislay size bug on the FTP server, or if FileZilla is "growing" the file back to its original local size. How would FileZilla know exactly how to do that?

As you suggested, I did a compare (using UltraCompare 5) on the original local file and the re-downloaded smaller file and they are identical!

And how could it be a display bug on the FTP server, as when I upload the file using FTP Voyager 12, the remote file is not smaller, rather it is exactly the same byte size as the local copy. And when I use FTP Voyager 12 to just look at the remote file that FileZilla uploaded, it is showing as about 1000 bytes smaller. Just as I see the smaller remote file in FileZilla.

The changed remote file size by FileZilla seemed scary because you don't know if there's a corruption or deletion.

Regarding passive mode, the FTP hosting company specifically recommends *not* enabling passive mode. But I will try it as you suggest.

comment:3 by Tim Kosse, 17 years ago

Your server most likely uses a Unix-like operating system, which uses single LF characters for line endings.

See http://filezilla-project.org/wiki/index.php/Data_Type

Regarding passive mode, the FTP hosting company specifically
recommends *not* enabling passive mode.

Get a different hosting company, your's got no clue.

Note: See TracTickets for help on using tickets.