- I blocked TC in the Windows Firewall.
- I connect to a public ftp server, not using passive mode.
- A small window is displayed containing the LIST command.
- I choose Cancel (Esc or C or Enter or Space or click Cancel or click cross) and choose OK.
- Fallback to passive mode happens, the command PASV is now displayed in the small window.
- When I press Esc nothing happens, but pressing C or Enter or Space or clicking Cancel or X does work.
Also, when I use one of the working methods and then abort the aborting, then pressing Esc does work.
[TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
Moderators: Hacker, petermad, Stefan2, white
[TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
This happens when no button is defined as the default "Cancel" method - then ESC will be ignored. I will check what no button is defined as default "Cancel" button in this case.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
Hmmm, note that when choosing another method to cancel and then cancel the cancellation, then pressing Esc does work. So then a button is set as the default Cancel button?ghisler(Author) wrote: 2023-09-03, 07:29 UTC This happens when no button is defined as the default "Cancel" method - then ESC will be ignored. I will check what no button is defined as default "Cancel" button in this case.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
Yes, it has do be defined to work.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
I have tried to reproduce this, but ESC always works here in the FTP directory reading progress dialog (e.g. when you press Ctrl+R).
Removing TC from the firewall rules made TC switch automatically from PORT to PASV mode.
Blocking TC completely didn't even allow the initial connection (connection dialog with multiple lines), so I don't see how you got that result.
Please provide more information how you got this result.
Removing TC from the firewall rules made TC switch automatically from PORT to PASV mode.
Blocking TC completely didn't even allow the initial connection (connection dialog with multiple lines), so I don't see how you got that result.
Please provide more information how you got this result.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
I click on the shield icon in system tray, Firewall and Network security, Advanced settings.
Under Rules for incoming connections, I lookup the rules for Total Commander (screenshot).
I then remove, disable or change the rules to block for both TCP and UDP.
Then I try to connect to the FTP server.
When I don't press Esc, both LIST and PASV fail and an empty list is displayed.
If I press Esc to cancel the LIST command, I cannot cancel the PASV command by using the Esc key. If I do not cancel the PASV command by other means, I get a "Connection lost, reconnect" dialog. If I chooses Yes the reconnection and passive mode succeeds and the remote file list is displayed.
Under Rules for incoming connections, I lookup the rules for Total Commander (screenshot).
I then remove, disable or change the rules to block for both TCP and UDP.
Then I try to connect to the FTP server.
When I don't press Esc, both LIST and PASV fail and an empty list is displayed.
If I press Esc to cancel the LIST command, I cannot cancel the PASV command by using the Esc key. If I do not cancel the PASV command by other means, I get a "Connection lost, reconnect" dialog. If I chooses Yes the reconnection and passive mode succeeds and the remote file list is displayed.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
I cannot reproduce that. Only LIST needs incoming connections, PASV doesn't. It uses outgoing connections to the server.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
When PASV is sent, passive mode isn't active yet, is it?ghisler(Author) wrote: 2023-09-10, 10:49 UTC I cannot reproduce that. Only LIST needs incoming connections, PASV doesn't. It uses outgoing connections to the server.
Try this server: ftp.nluug.nl (anonymous)
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
I get this result:
PORT 192,168,0,28,156,64
500 Illegal PORT command.
PASV
227 Entering Passive Mode (145,220,21,40,198,91).
Connected to PASV port
LIST -la
PORT 192,168,0,28,156,64
500 Illegal PORT command.
PASV
227 Entering Passive Mode (145,220,21,40,198,91).
Connected to PASV port
LIST -la
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
Did you create a new connection with setting to not use passive mode?
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
No, I changed an existing connection not to use passive mode. As you can see in the log TC sends
PORT
first, but since the server reports that PORT mode isn't possible to that (local) address, it switches to PASV.
What does your log look like?
PORT
first, but since the server reports that PORT mode isn't possible to that (local) address, it switches to PASV.
What does your log look like?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
In my logs, the port command is successful.ghisler(Author) wrote: 2023-09-11, 10:05 UTC As you can see in the log TC sends PORT first, but since the server reports that PORT mode isn't possible to that (local) address, it switches to PASV.
What does your log look like?
If I allow LIST and PASV to time out, the end result is an empty file list.
Log:
Code: Select all
PORT 192,168,2,1,221,214
200 PORT command successful. Consider using PASV.
LIST
PORT failed, try PASV mode!
PASV
If I don't abort PASV by other means and let it time out, a "Connection lost, reconnect?" message appears.
Log:
Code: Select all
PORT 192,168,2,1,221,220
200 PORT command successful. Consider using PASV.
LIST
Cancel pressed!
PASV
OFFLINE4, no reply
Log:
Code: Select all
PORT 192,168,2,1,221,212
200 PORT command successful. Consider using PASV.
LIST
Cancel pressed!
PASV
Cancel pressed!
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
The reason is that the server itself hangs in the PASV command and doesn't respond to abort characters because the PORT command succeeded (some servers don't cancel the PORT connection when receiving a PASV command). Currently the only way to fix it is to manually switch to passive mode. I'm sorry but since the problem is on the server side, there is no solution.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
As reported, it does respond to abort characters but not to Esc. That is, until you use other abort characters and abort the aborting. Then you end up in the same dialog and Esc does work.ghisler(Author) wrote: 2023-09-12, 08:55 UTC The reason is that the server itself hangs in the PASV command and doesn't respond to abort characters because the PORT command succeeded
Obviously there is.ghisler(Author) wrote: 2023-09-12, 08:55 UTC I'm sorry but since the problem is on the server side, there is no solution.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 11.01] FTP client: Esc doesn't work to abort during fallback to passive mode
I found something by trying with various servers: ESC doesn't work when you have to press it TWICE, e.g. when the server hangs first in the LIST command and then also in the PASV command. Then TC is already in "aborted" mode and ignores further ESC presses. I will change that.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com