Bug about Resume

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
hhapp0728
504 Command not implemented
Posts: 11
Joined: 2006-02-09 06:13

Bug about Resume

#1 Post by hhapp0728 » 2006-02-09 07:21

Below is the story:
I used FileZilla 2.2.18, and connected to a MS FTP Server. A text file(Test.txt) exists on the server. The text file's context is "Hello". First, I downloaded Test.txt. Then, I downloaded Test.txt again, and I got a message box "File already exists". I selected an action "Resume" and click OK. Now, I got a file Test.txt which contains "HelloHello". Double Hello! It's wrong. Below is the Message Log:

Status: Connecting to ???.???.???.??? ...
Status: Connected with ???.???.???.???. Waiting for welcome message...
Response: 220 ntserver Microsoft FTP Service (Version 5.0).
Command: USER kequn
Response: 331 Password required for kequn.
Command: PASS **********
Response: 230-Welcome to Test FTP server
Response: 230 User kequn logged in.
Command: FEAT
Response: 500 'FEAT': command not understood
Command: SYST
Response: 215 Windows_NT version 5.0
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/kequn" is current directory.
Command: TYPE A
Response: 200 Type set to A.
Command: PASV
Response: 227 Entering Passive Mode (???,???,???,???,6,235)
Command: LIST
Response: 125 Data connection already open; Transfer starting.
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Retrieving directory listing...
Command: CWD char
Response: 250 CWD command successful.
Command: PWD
Response: 257 "/kequn/char" is current directory.
Command: TYPE A
Response: 200 Type set to A.
Command: PASV
Response: 227 Entering Passive Mode (???,???,???,???,7,20)
Command: LIST
Response: 125 Data connection already open; Transfer starting.
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Connecting to ???.???.???.??? ...
Status: Connected with ???.???.???.???. Waiting for welcome message...
Response: 220 ntserver Microsoft FTP Service (Version 5.0).
Command: USER kequn
Response: 331 Password required for kequn.
Command: PASS **********
Response: 230-Welcome to Formax FTP server
Response: 230 User kequn logged in.
Command: FEAT
Response: 500 'FEAT': command not understood
Command: SYST
Response: 215 Windows_NT version 5.0
Status: Connected
Status: Starting download of /kequn/char/Test.txt
Command: PWD
Response: 257 "/kequn" is current directory.
Command: CWD /kequn/char/
Response: 250 CWD command successful.
Command: PWD
Response: 257 "/kequn/char" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (???,???,???,???,7,24)
Command: RETR Test.txt
Response: 125 Data connection already open; Transfer starting.
Response: 226 Transfer complete.
Status: Download successful
Status: Starting download of /kequn/char/Test.txt
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (???,???,???,???,7,25)
Command: REST 5
Response: 350 Restarting at 5.
Command: RETR Test.txt
Response: 125 Data connection already open; Transfer starting.
Response: 226 Transfer complete.
Status: Download successful
Command: TYPE A
Response: 200 Type set to A.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

#2 Post by botg » 2006-02-09 09:55

It's a problem with your server.

It has been given the correct resume command (REST 5) yet it did send data despite the resume offset being at the end of the file.

hhapp0728
504 Command not implemented
Posts: 11
Joined: 2006-02-09 06:13

#3 Post by hhapp0728 » 2006-02-10 07:02

As what you said, maybe the error is from MS FTP Server. I tested a Serv-U FTP server using FileZilla. All things are OK.


While, I also tested the MS FTP Server with CuteFTP. There is no error occured. When I downloaded Test.txt again and again, CuteFTP gave me a message box, on it the RESUME button is disable because I had already downloaded Test.txt correctly.


So, I think FileZilla should also test the status of the file that was dowloaded. If the file has been downloaded correctly FileZilla should DISABLE the RESUME button.

Zythan
226 Transfer OK
Posts: 82
Joined: 2005-08-31 15:51
Location: France

Re: Bug about Resume

#4 Post by Zythan » 2006-02-11 00:55

Hello,

Most FTP-servers support "REST nnn" command. When client passes this command to server, server sends file from the specified position. The most known server with no broken downloads resume is Microsoft. To be correct, it supports "REST nnn" but requires nnn to be equal 0.

HTH.

Zythan

Post Reply