You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "christophe monjarret (JIRA)" <ji...@apache.org> on 2009/03/09 14:52:50 UTC

[jira] Created: (NET-259) UnixFTPEntryParser regex does not match some directory entries

UnixFTPEntryParser regex does not match some directory entries
--------------------------------------------------------------

                 Key: NET-259
                 URL: https://issues.apache.org/jira/browse/NET-259
             Project: Commons Net
          Issue Type: Bug
    Affects Versions: 2.0
         Environment: Solaris
            Reporter: christophe monjarret


The following directory entries are not parsed by the UnixFTPEntryParser:

drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227

The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.

The REGEX format is:

<.......>
+"(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+"
<.......>

The problem is the pattern "\\s+", it should be "\\s*"

Chris M.




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (NET-259) UnixFTPEntryParser regex does not match some directory entries

Posted by "christophe monjarret (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

christophe monjarret updated NET-259:
-------------------------------------

    Description: 
The following directory entries are not parsed by the UnixFTPEntryParser:

drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227

The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.

The REGEX format is:

<.......>
(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+
<.......>

The problem is the pattern '\\s+', it should be '\\s*'

Chris M.




  was:
The following directory entries are not parsed by the UnixFTPEntryParser:

drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227

The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.

The REGEX format is:

<.......>
+"(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+"
<.......>

The problem is the pattern "\\s+", it should be "\\s*"

Chris M.





> UnixFTPEntryParser regex does not match some directory entries
> --------------------------------------------------------------
>
>                 Key: NET-259
>                 URL: https://issues.apache.org/jira/browse/NET-259
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Solaris
>            Reporter: christophe monjarret
>
> The following directory entries are not parsed by the UnixFTPEntryParser:
> drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
> drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
> drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227
> The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.
> The REGEX format is:
> <.......>
> (((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+
> <.......>
> The problem is the pattern '\\s+', it should be '\\s*'
> Chris M.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (NET-259) UnixFTPEntryParser regex does not match some directory entries

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated NET-259:
---------------------

    Description: 
The following directory entries are not parsed by the UnixFTPEntryParser:

{code}
drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227
{code}

The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.

The REGEX format is:

{noformat}
<.......>
(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+
<.......>

The problem is the pattern \\s+, it should be \\s*
{noformat}

Chris M.




  was:
The following directory entries are not parsed by the UnixFTPEntryParser:

drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227

The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.

The REGEX format is:

<.......>
(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+
<.......>

The problem is the pattern \\s+, it should be \\s*

Chris M.





Add markup to prevent markup characters being misinterpreted

> UnixFTPEntryParser regex does not match some directory entries
> --------------------------------------------------------------
>
>                 Key: NET-259
>                 URL: https://issues.apache.org/jira/browse/NET-259
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Solaris
>            Reporter: christophe monjarret
>
> The following directory entries are not parsed by the UnixFTPEntryParser:
> {code}
> drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
> drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
> drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227
> {code}
> The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.
> The REGEX format is:
> {noformat}
> <.......>
> (((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+
> <.......>
> The problem is the pattern \\s+, it should be \\s*
> {noformat}
> Chris M.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (NET-259) UnixFTPEntryParser regex does not match some directory entries

Posted by "Rory Winston (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rory Winston closed NET-259.
----------------------------

       Resolution: Fixed
    Fix Version/s: 2.1

Fixed. Thanks Chris.

> UnixFTPEntryParser regex does not match some directory entries
> --------------------------------------------------------------
>
>                 Key: NET-259
>                 URL: https://issues.apache.org/jira/browse/NET-259
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Solaris
>            Reporter: christophe monjarret
>             Fix For: 2.1
>
>
> The following directory entries are not parsed by the UnixFTPEntryParser:
> {code}
> drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
> drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
> drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227
> {code}
> The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.
> The REGEX format is:
> {noformat}
> <.......>
> (((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+
> <.......>
> The problem is the pattern \\s+, it should be \\s*
> {noformat}
> Chris M.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (NET-259) UnixFTPEntryParser regex does not match some directory entries

Posted by "christophe monjarret (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

christophe monjarret updated NET-259:
-------------------------------------

    Description: 
The following directory entries are not parsed by the UnixFTPEntryParser:

drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227

The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.

The REGEX format is:

<.......>
(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+
<.......>

The problem is the pattern \\s+, it should be \\s*

Chris M.




  was:
The following directory entries are not parsed by the UnixFTPEntryParser:

drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227

The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.

The REGEX format is:

<.......>
(((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+
<.......>

The problem is the pattern '\\s+', it should be '\\s*'

Chris M.





> UnixFTPEntryParser regex does not match some directory entries
> --------------------------------------------------------------
>
>                 Key: NET-259
>                 URL: https://issues.apache.org/jira/browse/NET-259
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Solaris
>            Reporter: christophe monjarret
>
> The following directory entries are not parsed by the UnixFTPEntryParser:
> drwxr-x---+1464 chrism   chrism     41472 Feb 25 13:17 20090225
> drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090226
> drwxr-x---+1465 chrism   chrism     41984 Feb 28 07:15 20090227
> The root cause is that the REGEX used to parse these Strings expects there is at least one space between the first '+' and the following decimal characters.
> The REGEX format is:
> <.......>
> (((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\\+?\\s+
> <.......>
> The problem is the pattern \\s+, it should be \\s*
> Chris M.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.