750PB2:FTP Download From List,CLNT,OPTS UTF8 ON,CWD

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

750PB2:FTP Download From List,CLNT,OPTS UTF8 ON,CWD

Post by *white »

* include in your wcx_ftp.ini file a logfile specification and "SpecialFlags=16" (detailed log for ftp connections in background)
Example:

Code: Select all

[General]
LogFile=t:\TC\TC7.50 public beta 2\tcftp.log
SpecialFlags=16
* delete or rename the logfile if it exists
* create a file called download.txt with the following contents:

Code: Select all

ftp://test@ftp.secureftp-test.com/plants.xml
* create a file called download2.txt with the following contents:

Code: Select all

ftp://anonymous@ftp.mozilla.org/pub/README
ftp://test@ftp.secureftp-test.com/plants.xml
* select menu option Net/FTP Download From List and download the list in the download.txt file. When asked for a password enter "test".
* rename the logfile to something else
* select menu option Net/FTP Download From List and download the list in the download2.txt file. When asked for a password enter "test".
* compare the new logfile with the old logfile (menu option Files/Compare By Content)
* in the old logfile click the first line so it becomes selected
* in the new logfile select the line where the tranfer of the second file begins (the second line containing "BG:----------")
* right click and select the option Resync comparison from here
* search for "FEAT" from the top and look at the following lines:
BG:FEAT
BG:211-Features:
BG: EPRT
BG: EPSV
BG: MDTM
BG: PASV
BG: REST STREAM
BG: SIZE
BG: TVFS
BG:211 End
BG:CLNT Total Commander (UTF-8)
BG:500 Unknown command.
1) Why is the CLNT command sent when the CLNT command is not listed in the commands reported by the FEAT command (commands that the server supports beyond those described in RFC 959)?

* Now look at the lines of the transfer of ftp://test@ftp.secureftp-test.com/plants.xml
Look at:
BG:CLNT Total Commander (UTF-8)
BG:200 Don't care
BG:OPTS UTF8 ON
BG:200 UTF8 mode enabled
2) The CLNT command is only sent to the first server and not to the second.
3) UTF8 mode is only enabled for the first server and not for the second.
* Also look at:
BG:CWD
BG:250 Broken client detected, missing argument to CWD. "/" is current directory.
4) An extra CWD command seems to be sent when previously a file was transferred from a sub folder on a server.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

CLNT is always sent because some servers don't report that they support it, and because it doesn't cause any harm.
2) The CLNT command is only sent to the first server and not to the second.
3) UTF8 mode is only enabled for the first server and not for the second.
I will check that.
An extra CWD command seems to be sent when previously a file was transferred from a sub folder on a server.
Indeed TC should return to the base dir. Is that perhaps the root dir?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ghisler(Author) wrote:
An extra CWD command seems to be sent when previously a file was transferred from a sub folder on a server.
Indeed TC should return to the base dir..
That only makes sense when still connected to the same server.
ghisler(Author) wrote: ..Is that perhaps the root dir?
I don't know. In any case "CWD" does not seem to do the job.

BTW. I tried to FTP Download From List the following list:

Code: Select all

ftp://anonymous@ftp.mozilla.org/pub/README
ftp://anonymous@ftp.mozilla.org/README
ftp://anonymous@ftp.mozilla.org/pub/data/PerformanceAndFootprints.html
The logfile reports:
BG:Copied (01-05-2009 13:08:18): ftp://ftp.mozilla.org/pub//pub/README -> T:\TC\TC7.50 public beta 2\z\README 1.144 bytes, 6 kbytes/s
BG:Copied (01-05-2009 13:08:19): ftp://ftp.mozilla.org/pub//README -> T:\TC\TC7.50 public beta 2\z\README 528 bytes, 2 kbytes/s
BG:Copied (01-05-2009 13:08:20): ftp://ftp.mozilla.org/pub//pub/data/PerformanceAndFootprints.html -> T:\TC\TC7.50 public beta 2\z\PerformanceAndFootprints.html 1.025 bytes, 5 kbytes/s
Is this logging correct (extra "/pub/" included)?
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

I tried to FTP Download From List the following list (password "test"):

Code: Select all

ftp://test@ftp.secureftp-test.com/plants.xml
ftp://anonymous@ftp.mozilla.org/pub/data/PerformanceAndFootprints.html
The logfile reports:
BG:CWD /pub/data
BG:250 Directory successfully changed.
BG:Connect ok!
BG:CWD /pub/data
BG:250 Directory successfully changed.
Why change directory twice?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Why change directory twice?
Don't know, probably because the server didn't report the new dir in the confirmation message.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

ghisler(Author) wrote:
Why change directory twice?
Don't know, probably because the server didn't report the new dir in the confirmation message.
Not likely because this does happen with this list:

Code: Select all

ftp://test@ftp.secureftp-test.com/plants.xml
ftp://anonymous@ftp.mozilla.org/pub/data/PerformanceAndFootprints.html
But NOT with this list:

Code: Select all

ftp://anonymous@ftp.mozilla.org/pub/data/PerformanceAndFootprints.html
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I think that I could find the problem now, please try again with the next beta.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: 750PB2:FTP Download From List,CLNT,OPTS UTF8 ON,CWD

Post by *white »

white wrote: 1) Why is the CLNT command sent when the CLNT command is not listed in the commands reported by the FEAT command (commands that the server supports beyond those described in RFC 959)?
2) The CLNT command is only sent to the first server and not to the second.
3) UTF8 mode is only enabled for the first server and not for the second.
Tested OK using PB3.
white wrote: 4) An extra CWD command seems to be sent when previously a file was transferred from a sub folder on a server.
Still testing this.
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

I tried to FTP Download From List the following list (any password will do):

Code: Select all

ftp://anonymous@ftp.mozilla.org/pub/README
ftp://anonymous@ftp.mozilla.org/README
ftp://anonymous@ftp.mozilla.org/pub/data/PerformanceAndFootprints.html
The logfile reports:
BG:CWD
BG:550 Failed to change directory.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can confirm the return of the CWD error, thanks!
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Beta 4 test results: all things tested OK.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, finally! :)

Please let me know if you encounter any similar error.
Author of Total Commander
https://www.ghisler.com
Post Reply