commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (NET-294) UnixFTPEntryParser fails to parse some entries
Date Sat, 04 Jun 2011 19:06:47 GMT

     [ https://issues.apache.org/jira/browse/NET-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb updated NET-294:
---------------------

    Fix Version/s:     (was: 1.5)

> UnixFTPEntryParser fails to parse some entries
> ----------------------------------------------
>
>                 Key: NET-294
>                 URL: https://issues.apache.org/jira/browse/NET-294
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Gilles Duboscq
>             Fix For: 2.2
>
>         Attachments: UnixFTPEntryParser.java.patch
>
>
> The regex does match the entry but the resulting groups are wrong for exemple, with
> {code}
> -rwxrwx---   1 ftp      ftp-admin 816026400 Oct  5  2008 bloplab 7 cd1.img
> {code}
> the unix group name group will match "ftp-admin 816026400 Oct" file size group will match
"5" first date group will match "2008 bloplab" then the year group will match "7" and the
file name group will match "cd1.img"
> in this listing :
> {code}
> -rwxrwx---   1 ftp      ftp-admin      771 Oct  5  2008 bloplab 7 cd1.ccd
> -rwxrwx---   1 ftp      ftp-admin       76 Oct  5  2008 bloplab 7 cd1.cue
> -rwxrwx---   1 ftp      ftp-admin 816026400 Oct  5  2008 bloplab 7 cd1.img
> -rwxrwx---   1 ftp      ftp-admin 33307200 Oct  5  2008 bloplab 7 cd1.sub
> -rwxrwx---   1 ftp      ftp-admin      772 Oct  5  2008 bloplab 7 cd2.ccd
> -rwxrwx---   1 ftp      ftp-admin       76 Oct  5  2008 bloplab 7 cd2.cue
> -rwxrwx---   1 ftp      ftp-admin 413902608 Oct  5  2008 bloplab 7 cd2.img
> -rwxrwx---   1 ftp      ftp-admin 16893984 Oct  5  2008 bloplab 7 cd2.sub
> {code}
> the 4 entries in which groupname and file size are only separated by one space wont be
parsed properly, the others work

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message