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=35592>.
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=35592

           Summary: Unix parser not handling filenames beginning with
                    whitespace
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: Mac OS X 10.3
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Net
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Filenames beginning with whitespace (such as " filename") are not parsed 
correctly. Currently any 
whitespace between the date and filename is ignored. However one can probably 
assume there is only 
one whitespace character between the date and the filename and any additional 
whitespace is part of 
the filename. (This is an assumption made from my experience with different ftp 
server 
implementations)

===============================================================
====
--- UnixFTPEntryParser.java     (revision 208907)
+++ UnixFTPEntryParser.java     (working copy)
@@ -101,9 +101,9 @@
            year (for non-recent standard format) 
                   or time (for numeric or recent standard format  
                */
-               + "(\\d+(?::\\d+)?)\\s+"
+               + "(\\d+(?::\\d+)?)\\s"
         
-               + "(\\S*)(\\s*.*)";
+               + "(\\s*\\S*)(\\s*.*)";
 
 
     /**

-- 
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