Commons Net
  1. Commons Net
  2. NET-259

UnixFTPEntryParser regex does not match some directory entries

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Solaris

      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.

        Activity

        christophe monjarret created issue -
        christophe monjarret made changes -
        Field Original Value New Value
        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.


        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.


        christophe monjarret made changes -
        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.


        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.


        Sebb made changes -
        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.


        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.


        Rory Winston made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.1 [ 12313001 ]
        Resolution Fixed [ 1 ]
        Sebb made changes -
        Fix Version/s 2.1 [ 12313001 ]
        Fix Version/s 2.2 [ 12315361 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            christophe monjarret
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development