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

Thilo Ognibeni updated NET-265:
-------------------------------

    Attachment: UnixParserTest.patch
                UnixParser.patch

Patch and test case for the bug.

> UnixFTPEntryParser fails to parse entry in certain conditions
> -------------------------------------------------------------
>
>                 Key: NET-265
>                 URL: https://issues.apache.org/jira/browse/NET-265
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Thilo Ognibeni
>         Attachments: UnixParser.patch, UnixParserTest.patch
>
>
> The UnixFTPEntryParser fails to parse following entry:
> -rw-r--r--   1 ftpuser  ftpusers 12414535 Mar 17 11:07 test 1999 abc.pdf
> Because of the fact that the group name may contain spaces, it is extended in 
> this case to "ftpusers 12414535 Mar".
> This happens because there is only one space between the group name an the 
> file size (occurs (in my case) if the file size has eight or more digits). 
> Additionally the file name contains spaces and the "second part" of the file 
> name is a number. (Seems to be an odd case, but obviously it sometimes 
> emerges.)
> The problem does not occur if a numeric date is used ("2008-03-19"). So I 
> made the regex for the standard date ("Mar 19") more specific in a way that 
> the month may only contain characters ([a-zA-Z]). Right now all 
> non-whitespace characters are allowed (\S). The patch is attached.

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

Reply via email to