michaellukashov / Far-NetBox

SFTP/SCP/FTP/FTPS/WebDAV/S3 client for Far Manager 3 (http://farmanager.com/)
https://forum.farmanager.com/viewtopic.php?t=6317
GNU General Public License v2.0
158 stars 52 forks source link

"Could not retrieve directory listing" error when attempting to access FTP #57

Closed a-bronx closed 10 years ago

a-bronx commented 11 years ago

Client: NetBox Version 2.1.29 (Build 236), Far 3. Server: Android phone with "Software Data Cable" app.

Successfully connected and shown a content of a root dir, but on attempt to change dir returns "Could not retrieve directory listing".

Far 2.0 with FTP plugin works correctly with the same server.

Directory structure is:

/
/mnt/
/mnt/secure/
/mnt/sdcard/
...

Log: 15:58:46.619 -------------------------------------------------------------------------- 15:58:46.619 NetBox Version 2.1.29 (Build 236) (OS 6.1.7601 Service Pack 1) 15:58:46.621 Configuration: NetBox 3\ 15:58:46.621 Working directory: C:\Users\andreyb\AppData\Local\Temp 15:58:46.621 Login time: 24.04.2013 15:58:46 15:58:46.621 -------------------------------------------------------------------------- 15:58:46.622 Host name: 192.168.16.22 (Port: 8888) . 15:58:46.622 Tunnel: No . 15:58:46.622 Transfer Protocol: FTP . 15:58:46.622 Code Page: 65001 , 15:58:46.622 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec . 15:58:46.622 Proxy: none . 15:58:46.622 FTP: FTPS: None; Passive: Yes [Force IP: A]; MLSD: - . 15:58:46.623 Local directory: default, Remote directory: /, Update: No, Cache: No . 15:58:46.623 Cache directory changes: No, Permanent: No . 15:58:46.623 DST mode: 0; Timezone offset: 0h 0m . 15:58:46.623 -------------------------------------------------------------------------- . 15:58:46.627 Connecting to 192.168.16.22:8888 ... . 15:58:46.773 Connected with 192.168.16.22:8888. Waiting for welcome message... < 15:58:47.702 220 DirectPush 4.2.1 ready

5:58:47.702 USER user1 < 15:58:47.710 331 Send password 15:58:50.538 PASS ** < 15:58:50.747 230 Access granted 15:58:50.747 SYST < 15:58:51.189 215 UNIX Type: L8 15:58:51.189 FEAT < 15:58:51.215 211-Features supported < 15:58:51.432 UTF8 < 15:58:51.432 211 End 15:58:51.433 OPTS UTF8 ON < 15:58:51.582 200 OPTS accepted . 15:58:51.683 Connected . 15:58:51.683 -------------------------------------------------------------------------- . 15:58:51.683 Using FTP protocol. . 15:58:51.683 Doing startup conversation with host. 15:58:51.685 PWD < 15:58:51.820 257 "/" . 15:58:51.821 Changing directory to "/". 15:58:51.821 CWD / < 15:58:51.839 250 CWD successful . 15:58:51.889 Getting current directory name. 15:58:51.889 PWD < 15:58:51.994 257 "/" . 15:58:51.996 Retrieving directory listing... 15:58:51.996 TYPE A < 15:58:52.047 200 ASCII type set 15:58:52.097 PASV < 15:58:52.201 227 Entering Passive Mode (192,168,16,22,216,58). 15:58:52.201 LIST -a < 15:58:52.304 150 Opening ASCII mode data connection for file list . 15:58:52.354 drwxr-xr-x 1 owner group 0 Apr 21 11:31 mnt < 15:58:52.525 226 Data transmission OK . 15:58:52.576 Directory listing successful . 15:58:52.577 Startup conversation with host finished. . 15:58:54.978 Changing directory to "mnt". 15:58:54.978 CWD mnt < 15:58:55.210 250 CWD successful . 15:58:55.210 Getting current directory name. 15:58:55.210 PWD < 15:58:55.238 257 "mnt" . 15:58:55.239 Retrieving directory listing... 15:58:55.289 CWD /mnt/mnt/ < 15:58:55.343 550 Can't CWD to invalid directory . 15:58:55.343 Could not retrieve directory listing . 15:58:57.821 Changing directory to "/". . 15:58:57.821 Synchronizing current directory "mnt". 15:58:57.821 CWD mnt < 15:58:58.062 550 Can't CWD to invalid directory

Note the attempt to retieve content using CWD /mnt/mnt/ which is an invalid command executed with invalid path and that causes the error.

michaellukashov commented 10 years ago

this is fixed in Far3 2.1.35 version