commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iain Soars (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NET-266) FTPClient.listFiles() corrupts file name in certain circumstances
Date Fri, 03 Apr 2009 12:06:12 GMT

    [ https://issues.apache.org/jira/browse/NET-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695350#action_12695350
] 

Iain Soars commented on NET-266:
--------------------------------

OK, using exactly the same code as above but with the 2.1 snapshot I now get the following
output:

-rw-rw-rw-   1 user group 5840 Mar 19 09:34 123 456 abc.csv
123 456 abc.csv
user
group
5840
java.util.GregorianCalendar[time=?,areFieldsSet=false,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/London",offset=0,dstSavings=3600000,useDaylight=true,transitions=242,lastRule=java.util.SimpleTimeZone[id=Europe/London,offset=0,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=3600000,startTimeMode=2,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=3600000,endTimeMode=2]],firstDayOfWeek=2,minimalDaysInFirstWeek=4,ERA=1,YEAR=2009,MONTH=2,WEEK_OF_YEAR=12,WEEK_OF_MONTH=3,DAY_OF_MONTH=19,DAY_OF_YEAR=78,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=3,AM_PM=0,HOUR=9,HOUR_OF_DAY=9,MINUTE=34,SECOND=0,MILLISECOND=0,ZONE_OFFSET=3600000,DST_OFFSET=0]


> FTPClient.listFiles() corrupts file name in certain circumstances
> -----------------------------------------------------------------
>
>                 Key: NET-266
>                 URL: https://issues.apache.org/jira/browse/NET-266
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows Vista client running JDK 1.6.0_12
> FTP server on Solaris 10
>            Reporter: Iain Soars
>            Priority: Minor
>
> 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'

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message