DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37971>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37971

           Summary: NTFTPEntryParser doesn't parse NT ftp server list
                    correctly.
           Product: Commons
           Version: 1.4 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Net
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Windows NT IIS ftp server, use ms-dos style listing.
If the dirtory name is number leading and contains space, it will give wrong 
result.
e.g.
2005-11-22  15:52    <DIR>          123 folder

The folder name is "123 folder", but NTFTPEntryParse deal "123" as size of the
dir. This issue is caused by the regexp
"(\\S+)\\s+(\\S+)\\s+(<DIR>)?\\s*([0-9]+)?\\s+(\\S.*)" in NTFTPEntryParser.

This defeact can be fixed by change this regexp to
"(\\S+)\\s+(\\S+)\\s+(<DIR>|[0-9]+)?\\s+(\\S.*)" and make changes to some code
in this file.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to