You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Rory Winston (JIRA)" <ji...@apache.org> on 2006/08/27 16:50:23 UTC
[jira] Resolved: (NET-114) [net] Unix parser not handling filenames
beginning with whitespace
[ http://issues.apache.org/jira/browse/NET-114?page=all ]
Rory Winston resolved NET-114.
------------------------------
Resolution: Won't Fix
unless there's a specific need. This seems a bit nasty.
> [net] Unix parser not handling filenames beginning with whitespace
> ------------------------------------------------------------------
>
> Key: NET-114
> URL: http://issues.apache.org/jira/browse/NET-114
> Project: Commons Net
> Issue Type: Bug
> Environment: Operating System: Mac OS X 10.3
> Platform: All
> Reporter: David Kocher
> Priority: Minor
>
> 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*.*)";
>
>
> /**
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org