commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37971] New: - NTFTPEntryParser doesn't parse NT ftp server list correctly.
Date Tue, 20 Dec 2005 12:42:05 GMT
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: zjj@huawei.com


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message