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

Apache FTPClient doesn't handle common responses to PWD

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.2
    • 3.3
    • FTP
    • None

    Description

      Common FTP servers (like vsftpd) responses' to PWD don't have a commentary as per RFC959.

      vsftpd, MockFtpServer and others respond thusly:

      > 257 "/"

      The current handling in FTPClient.__parsePathname simply returns everything after "257 ". This breaks other code that relies on Apache FTPClient, like the Camel FTP2 component.

      I suggest that, for increased resilience, this brief response be special-cased.

      vsftpd maintainer has been notified too, but it's just an email address.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              barrkel Barry Kelly
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: