Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-62

[net] FTP Client fails to retrieve file list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • None
    • None
    • None
    • Operating System: Windows 2000
      Platform: PC

    • 38055

    Description

      [
      using commons-net-1.4.1.jar
      jsdk 1.4.2_08
      ]

      a) Both ftp servers require authorization.
      b) login and authorization complete successfully.
      c) change of working directory completes successfully.
      d) At the end is the connection log using FileZilla to connect to ftp servers.
      e) Both of the fetches below fail when a file exists in directory:

      FTPListParseEngine engine = this.initiateListParsing();
      FTPFile[] m_files = engine.getFiles();

      OR

      FTPFile[] m_files = this.listFiles();

      where THIS = the org.apache.commons.net.ftp.FTPClient

      Any ideas why I can't get a file list?

                          • FileZilla Connection Log ***************
                          • I replace server names/ips with <HOST (A or B)> ***********

      Status: Connecting to <HOSTA> ...
      Status: Connected with <HOSTA>. Waiting for welcome message...
      Response: 220 ProFTPD 1.2.10 Server (<HOSTA>) [<HOSTA>]
      Command: USER myusername
      Response: 331 Password required for filer.
      Command: PASS ******
      Response: 230 User myusername logged in.
      Command: FEAT
      Response: 211-Features:
      Response: MDTM
      Response: REST STREAM
      Response: SIZE
      Response: 211 End
      Command: SYST
      Response: 215 UNIX Type: L8
      Status: Connected
      Status: Retrieving directory listing...
      Command: PWD
      Response: 257 "/" is current directory.
      Command: TYPE A
      Response: 200 Type set to A
      Command: PASV
      Response: 227 Entering Passive Mode (<HOSTA IP LIST>).
      Command: LIST
      Response: 150 Opening ASCII mode data connection for file list
      Response: 226 Transfer complete.
      Status: Directory listing successful
      Command: TYPE I
      Response: 200 Type set to I
      Command: PWD
      Response: 257 "/" is current directory.
      Command: REST 0
      Response: 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
      Command: REST 0
      Response: 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
      Status: Disconnected from server
      Status: Connecting to <HOSTB> ...
      Status: Connected with <HOSTB>. Waiting for welcome message...
      Response: 220 <HOSTB> NcFTPd Server (licensed copy) ready.
      Command: USER myusername
      Response: 331 User myusername okay, need password.
      Command: PASS **********
      Response: 230-You are user #5 of 150 simultaneous users allowed.
      Response: 230-
      Response: 230 Restricted user logged in.
      Command: FEAT
      Response: 211-Extensions supported:
      Response: CLNT
      Response: LANG EN*
      Response: MDTM
      Response: MLST
      Type*;Size*;Modify*;Perm;Unique;UNIX.mode*;UNIX.owner;UNIX.uid;UNIX.group;UNIX.gid;
      Response: PASV
      Response: REST STREAM
      Response: SIZE
      Response: UTF8
      Response: TVFS
      Response: Compliance Level: 20040701 (IETF mlst-16)
      Response: 211 End.
      Command: CLNT FileZilla
      Response: 200 Noted.
      Command: OPTS UTF8 ON
      Response: 501 Option not recognized.
      Command: SYST
      Response: 215 UNIX Type: L8
      Status: Connected
      Status: Retrieving directory listing...
      Command: PWD
      Response: 257 "/" is cwd.
      Command: TYPE A
      Response: 200 Type okay.
      Command: PASV
      Response: 227 Entering Passive Mode (<HOSTB IP List>)
      Command: LIST
      Response: 150 Data connection accepted from <CLIENT>:1229; transfer starting.
      Response: 226 Listing completed.
      Status: Directory listing successful
      Command: TYPE A
      Response: 200 Type okay.
      Status: Disconnected from server

      Attachments

        Activity

          People

            Unassigned Unassigned
            pcgoober Kevin Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: