[TC 11.51rc5] FTP: incorrect logging when using FTP Download From List

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

Moderators: petermad, Stefan2, white, Hacker

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

[TC 11.51rc5] FTP: incorrect logging when using FTP Download From List

Post by *white »

Here is what the FTP logfile looks like when downloading a Libre Office file from the ftp server tdf.mirror.liteserver.nl (anonymous login):
----------
Connect to: (13-02-2025 14:34:25)
hostname=tdf.mirror.liteserver.nl
username=anonymous
startdir=
tdf.mirror.liteserver.nl=185.31.172.243
220 (vsFTPd 3.0.5)
USER anonymous
230 Login successful.
...
...
...
CWD /tdf/libreoffice/stable/25.2.0/win/x86_64
250 Directory successfully changed.
...
...
...
RETR LibreOffice_25.2.0_Win_x86-64.msi.asc
150 Opening BINARY mode data connection for LibreOffice_25.2.0_Win_x86-64.msi.asc (833 bytes).
Download
Waiting for server...
226 Transfer complete.
Copied (13-02-2025 14:34:52): ftp://tdf.mirror.liteserver.nl/tdf/libreoffice/stable/25.2.0/win/x86_64/LibreOffice_25.2.0_Win_x86-64.msi.asc -> d:\LibreOffice_25.2.0_Win_x86-64.msi.asc 833 bytes, 16 kbytes/s
Here is what the FTP logfile looks like when using a download list with the entry:

Code: Select all

ftp://tdf.mirror.liteserver.nl/tdf/libreoffice/stable/25.2.0/win/x86_64/LibreOffice_25.2.0_Win_x86-64.msi.asc
BG:----------
BG:Connect to: (13-02-2025 14:15:55)
BG:hostname=tdf.mirror.liteserver.nl
BG:username=anonymous
BG:startdir=/tdf/libreoffice/stable/25.2.0/win/x86_64
BG:tdf.mirror.liteserver.nl=185.31.172.243
BG:220 (vsFTPd 3.0.5)
BG:USER anonymous
BG:230 Login successful.
...
...
...
BG:CWD /tdf/libreoffice/stable/25.2.0/win/x86_64
BG:250 Directory successfully changed.
...
...
...
BG:RETR /tdf/libreoffice/stable/25.2.0/win/x86_64/LibreOffice_25.2.0_Win_x86-64.msi.asc
BG:150 Opening BINARY mode data connection for /tdf/libreoffice/stable/25.2.0/win/x86_64/LibreOffice_25.2.0_Win_x86-64.msi.asc (833 bytes).
BG:Download
BG:Waiting for server...
BG:226 Transfer complete.
BG:Copied (13-02-2025 14:15:56): ftp://tdf.mirror.liteserver.nl/tdf/libreoffice/stable/25.2.0/win/x86_64//tdf/libreoffice/stable/25.2.0/win/x86_64/LibreOffice_25.2.0_Win_x86-64.msi.asc -> d:\LibreOffice_25.2.0_Win_x86-64.msi.asc 833 bytes, 50 kbytes/s
As you can see, the full path is used in the RETR command. This is probably deliberate and I think not a problem. However, I don't think the path should be included twice in the "Copied" line at the end.
(When uploading files using a download list, the path is not included twice but there is an extra slash character)



When deleting files, the FTP logfile can have entries like this:
Deleted (13-02-2025 15:43:41): ftp://ftp.example.com//test123.txt
Deleted (13-02-2025 15:45:27): ftp://ftp.example.com/test/test123.txt
It seems a slash is always added, even when the file is in the root folder.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50254
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.51rc5] FTP: incorrect logging when using FTP Download From List

Post by *ghisler(Author) »

As you can see, the full path is used in the RETR command.
Confirmed. The same function is used for download in background and download from list. In the first case, the name field only contains the file name, while in the second case it contains the full path, so the path is appended twice.
When deleting files, the FTP logfile can have entries like this:
Thanks, this only seems to happen in the root of the server (or user account).
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5656
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.51rc5] FTP: incorrect logging when using FTP Download From List

Post by *white »

HISTORY.TXT wrote: 14.02.25 Fixed: FTP log file: Sometimes there were dual forward slashes added to the Copied: log line when deleting (32/64)
14.02.25 Fixed: FTP log file: When using "FTP download from list..." the path to the file was added twice to the Copied: log line (32/64)
Tested OK using TC 11.51 32-bit and 64-bit.

Moderator message from: white » 2025-02-19, 20:17 UTC

Moved topic
» from TC11.x bug reports (English) to TC Fixed bugs
Post Reply