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 35592] New: - Unix parser not handling filenames beginning with whitespace
Date Sun, 03 Jul 2005 13:04:43 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=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: dk@cyberduck.ch


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


Mime
View raw message