ashkulz / NppFTP

Plugin for Notepad++ allowing FTP, FTPS, FTPES and SFTP communications
https://ashkulz.github.io/NppFTP/
322 stars 93 forks source link

Failure retrieving contents of directory #232

Open hoang519 opened 6 years ago

hoang519 commented 6 years ago

Unable to list directory contents using settings that work in CMD and FileZilla. Firewalls have been opened correctly for our network, we use other FTP tools fine.

Steps to Reproduce the Issue

  1. Setup NppFTP config profile
  2. Click Connect
  3. Connect and get nothing for directory listings

We expect this plugin to list directories and let us upload and download files but because it can't see directory contents it can't

Actual Behavior

Fails listing directory contents with no error message or problem shown.

Debug Information

NPP DBG INFO Notepad++ v7.5.9 (64-bit) Build time : Oct 14 2018 - 15:19:55 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : ON Local Conf mode : OFF OS : Windows 10 (64-bit) Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppFTP.dll PluginManager.dll

NppFTP Output -> TYPE I
Connecting -> Quit
220 ::ffff:185.176.43.59 FTP server ready -> USER XXXXXXXX 331 Password required for XXXXXXXX -> PASS HIDDEN 230 Welcome to your web hosting account! Please upload your web site inside the directory of the respective hostname.(If you wish to upload outside the hostname directories or delete them please make sure Directory Protection is set to OFF from your hosting co -> TYPE A
-> MODE S
200 Type set to A -> STRU F
200 Mode set to S -> CWD /
200 Structure set to F Connected -> CWD /XXXXXXXXX 550 /XXXXXXXXX: No such file or directory Failure retrieving contents of directory /XXXXXXXXX

FileZilla output (successful connections) Status: Resolving address of XXXXXXXXX Status: Connecting to 185.176.43.59:21... Status: Connection established, waiting for welcome message... Response: 220 ::ffff:185.176.43.59 FTP server ready Command: AUTH TLS Response: 234 AUTH TLS successful Status: Initializing TLS... Status: Verifying certificate... Status: TLS connection established. Command: USER XXXXXXXXXX Response: 331 Password required for XXXXXXXXXX Command: PASS ** Response: 230 Welcome to your web hosting account! Please upload your web site inside the directory of the respective hostname.(If you wish to upload outside the hostname directories or delete them please make sure Directory Protection is set to OFF from your hosting control panel - File Manager section) Command: OPTS UTF8 ON Response: 200 UTF8 set to on Command: PBSZ 0 Response: 200 PBSZ 0 successful Command: PROT P Response: 200 Protection set to Private Status: Logged in Status: Retrieving directory listing of "XXXXXXXX"... Command: CWD /XXXXXXXX Response: 250 CWD command successful Command: PWD Response: 257 "/XXXXXXXX" is the current directory Command: TYPE I Response: 200 Type set to I Command: PASV Response: 227 Entering Passive Mode (185,176,43,59,192,143). Command: LIST Response: 150 Opening BINARY mode data connection for file list Response: 226 Transfer complete Status: Directory listing of "/XXXXXXXX" successful

chcg commented 6 years ago

@hoang519 Which version of NppFTP plugin are you using? Latest https://github.com/ashkulz/NppFTP/releases/tag/v0.27.5? Which kind of connection? FTPS or FTPES?

hoang519 commented 6 years ago

Latest version just redone loaded and installed in my troubleshooting. FTP.

Daniel Hoang | Computer Programmer Analyst CenterLine (Windsor) Limited W - 519-734-8464 x4328 C - 519-564-9249

On Oct 26, 2018, at 12:12 PM, chcg notifications@github.com<mailto:notifications@github.com> wrote:

@hoang519https://github.com/hoang519 Which version of NppFTP plugin are you using? Latest https://github.com/ashkulz/NppFTP/releases/tag/v0.27.5? Which kind of connection? FTPS or FTPES?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/ashkulz/NppFTP/issues/232#issuecomment-433461250, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqcNzjiRNa0Nu9ec7b2uN31TcHkKIKUQks5uozRPgaJpZM4X8VjQ.

hoang519 commented 6 years ago

I apologize, replied from a work phone and was not able to provide any further info. Here's the latest I'm using and the Connection type is FTP in Filezilla with Implicit TLS when available. I cannot find a similar option in NppFTP but I have tried all of them.

2018-10-26 12_49_05-new 1 - notepad administrator

chcg commented 6 years ago

grafik It is here.

hoang519 commented 6 years ago

Yes I tried this one as well and it does not connect.

[NppFTP] Everything initialized -> TYPE I
Connecting -> Quit
220 ::ffff:185.176.43.59 FTP server ready -> AUTH TLS
234 AUTH TLS successful [FTPS] Certificate invalid (18): self signed certificate. [FTPS] Certificate accepted -> USER xxxxxxx
331 Password required for xxxxxxx -> PASS HIDDEN 230 Welcome to your web hosting account! Please upload your web site inside the directory of the respective hostname.(If you wish to upload outside the hostname directories or delete them please make sure Directory Protection is set to OFF from your hosting co -> PBSZ 0
-> Quit
Unable to connect Disconnected

chcg commented 5 years ago

@hoang519 Did the directory you are trying to receive contain non ASCII characters or invalid characters for file access (see https://stackoverflow.com/questions/1976007/what-characters-are-forbidden-in-windows-and-linux-directory-names) or is extremely long like in #231 ?