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

FTPClient.listFiles() corrupts file name in certain circumstances

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows Vista client running JDK 1.6.0_12
      FTP server on Solaris 10

      Description

      A directory on the FTP server contains the following files:
      abc def ghi.csv
      123 abc ghi.csv
      123 abc 456.csv
      123 456 abc.csv

      When calling FTPClient.listFiles on the above directory the filenames returned in the FTPFile[] are as follows:
      abc def ghi.csv
      123 abc ghi.csv
      123 abc 456.csv
      abc.csv

      As this shows, the filename 123 456 abc.csv is being truncated and returned as abc.csv. This appears to be the case for all filenames that follow a pattern of 'number group' 'space' 'number group' 'space' 'character group'

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              soarsi Iain Soars
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: